SetaPDF_Core_Geometry_Point Class representing a point

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

Class hierarchy

Implements

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

collides()

Checks if this geometry collides with another geometry.

Parameters
$geometry : SetaPDF_Core_Geometry_Collidable
 

getX()

public SetaPDF_Core_Geometry_Point::getX (
void
): float

Get the x coordinate value.

getY()

public SetaPDF_Core_Geometry_Point::getY (
void
): float

Get the y coordinate value.

isEqual()

Compares a point against this one.

Parameters
$point : SetaPDF_Core_Geometry_Point

Compare point

setX()

public SetaPDF_Core_Geometry_Point::setX (
float $x
): void

Set the x coordinate value.

Parameters
$x : float

The new x coordinate

setY()

public SetaPDF_Core_Geometry_Point::setY (
float $y
): void

Set the y coordinate value.

Parameters
$y : float

The new y coordinate