setasign\Fpdi\Math

Vector A simple 2D-Vector class

File: /FPDI v2/Math/Vector.php

Class hierarchy

Summary

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