public function writePoint(QtiPoint $point)
    {
       try {
           $this->writeShort($point->getX());
           $this->writeShort($point->getY());
       } catch (BinaryStreamAccessException $e) {
           $msg = "An error occured while writing a point.";
           throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::POINT, $e);
       }
    }
public function writePoint(QtiPoint $point)
    {
       try {
           $this->writeShort($point->getX());
           $this->writeShort($point->getY());
       } catch (BinaryStreamAccessException $e) {
           $msg = "An error occured while writing a point.";
           throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::POINT, $e);
       }
    }
public function writePoint ( QtiPoint $ point ) { try { $ this -> writeShort ( $ point -> getX ( ) ) ; $ this -> writeShort ( $ point -> getY ( ) ) ; } catch ( BinaryStreamAccessException $ e ) { $ msg = "An error occured while writing a point." ; throw new QtiBinaryStreamAccessException ( $ msg , $ this , QtiBinaryStreamAccessException :: POINT , $ e ) ; } }
Write a Point in the current binary stream.

@param \qtism\common\datatypes\Point $point A Point object.
@throws \qtism\runtime\storage\binary\QtiBinaryStreamAccessException
Write a Point in the current binary stream .