Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: