setasign\SetaPDF2\Core\Geometry

Point Class representing a point

File: /SetaPDF v2/Core/Geometry/Point.php
Old class name (alias): \SetaPDF_Core_Geometry_Point

Class hierarchy

Implements

Summary

Properties

$_x

protected float Point::$_x = 0.0

The x coordinate value

$_y

protected float Point::$_y = 0.0

The y coordinate value


Methods

__construct()

public 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 Point::getX (
void
): float

Get the x coordinate value.

getY()

public Point::getY (
void
): float

Get the y coordinate value.

isEqual()

public Point::isEqual (): bool

Compares a point against this one.

Parameters
$point : \SetaPDF_Core_Geometry_Point

Compare point

setX()

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

Set the x coordinate value.

Parameters
$x : float

The new x coordinate

setY()

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

Set the y coordinate value.

Parameters
$y : float

The new y coordinate