SetaPDF_Core_Geometry_Point Class representing a point

File: /SetaPDF/Core/Geometry/Point.php

Class hierarchy

Summary

Properties

$_x

protected float SetaPDF_Core_Geometry_Point::$_x = 0.0

The x coordinate value

$_y

protected float SetaPDF_Core_Geometry_Point::$_y = 0.0

The y coordinate value


Methods

__construct()

public SetaPDF_Core_Geometry_Point::__construct ( float $x, float $y )

The constructor.

Parameters
$x : float

The x coordinate

$y : float

The y coordinate

getX()

public float SetaPDF_Core_Geometry_Point::getX ( void )

Get the x coordinate value.

getY()

public float SetaPDF_Core_Geometry_Point::getY ( void )

Get the y coordinate value.

isEqual()

Compares a point against this one.

Parameters
$point : SetaPDF_Core_Geometry_Point

Compare point

setX()

public void SetaPDF_Core_Geometry_Point::setX ( float $x )

Set the x coordinate value.

Parameters
$x : float

The new x coordinate

setY()

public void SetaPDF_Core_Geometry_Point::setY ( float $y )

Set the y coordinate value.

Parameters
$y : float

The new y coordinate