Vector
in package
A simple 2D-Vector class
Table of Contents
Properties
Methods
- __construct() : mixed
- getX() : float
- getY() : float
- multiplyWithMatrix() : Vector
Properties
$x
protected
float
$x
$y
protected
float
$y
Methods
__construct()
public
__construct([int|float $x = 0.0 ][, int|float $y = 0.0 ]) : mixed
Parameters
- $x : int|float = 0.0
- $y : int|float = 0.0
getX()
public
getX() : float
Return values
floatgetY()
public
getY() : float
Return values
floatmultiplyWithMatrix()
public
multiplyWithMatrix(Matrix $matrix) : Vector
Parameters
- $matrix : Matrix