Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Vector Class Reference

A simple 2D-Vector class. More...

Public Member Functions

 __construct ($x=.0, $y=.0)
 
 getX ()
 
 getY ()
 
 multiplyWithMatrix (Matrix $matrix)
 

Protected Attributes

float $x
 
float $y
 

Detailed Description

A simple 2D-Vector class.

Constructor & Destructor Documentation

◆ __construct()

Vector::__construct ( $x = .0,
$y = .0 )
Parameters
int | float$x
int | float$y

Member Function Documentation

◆ getX()

Vector::getX ( )
Return values
float

◆ getY()

Vector::getY ( )
Return values
float

◆ multiplyWithMatrix()

Vector::multiplyWithMatrix ( Matrix $matrix)
Parameters
Matrix$matrix
Return values
Vector

The documentation for this class was generated from the following file: