FPDI v2 API Reference
Manuals
API Reference
FPDI v2
setasign
Fpdi
Math
Vector
Index
\setasign\Fpdi
Math
Matrix
Vector
setasign\Fpdi\Math
Vector
A simple 2D-Vector class
File: /FPDI v2/Math/Vector.php
Class hierarchy
Vector
Summary
Methods
__construct()
getX()
getY()
multiplyWithMatrix()
Properties
$x
$y
Properties
$x
protected
float
Vector
::
$x
$y
protected
float
Vector
::
$y
Methods
__construct()
public
Vector
::
__construct
(
[
int
|
float
$x
= 0.0
[,
int
|
float
$y
= 0.0
]]
)
Parameters
$x :
int
|
float
$y :
int
|
float
getX()
public
Vector
::
getX
(
void
):
float
getY()
public
Vector
::
getY
(
void
):
float
multiplyWithMatrix()
public
Vector
::
multiplyWithMatrix
(
Matrix
$matrix
):
Vector
Parameters
$matrix :
Matrix