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()

The constructor.

Parameters
$x

The x coordinate

$y

The y coordinate

collides()

Checks if this geometry collides with another geometry.

Parameters
$geometry : SetaPDF_Core_Geometry_Collidable
 

getX()

Get the x coordinate value.

getY()

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 (
$x
): void

Set the x coordinate value.

Parameters
$x

The new x coordinate

setY()

public SetaPDF_Core_Geometry_Point::setY (
$y
): void

Set the y coordinate value.

Parameters
$y

The new y coordinate