\Tazorax\MathUtils\ThreeDVector3d

Class Vector3d

Summary

Methods
Properties
Constants
__construct()
inverse()
dot()
lengthSquared()
length()
normalize()
isLowerThan()
isGreaterThan()
multiply()
multiplyV()
crossProduct()
crossProductV()
add()
addV()
sub()
subV()
$x
$y
$z
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$x

$x : float

Type

float

$y

$y : float

Type

float

$z

$z : float

Type

float

Methods

__construct()

__construct(float  $x = 0.0, float  $y = 0.0, float  $z = 0.0) 

Vector3d constructor.

Parameters

float $x
float $y
float $z

dot()

dot(\Tazorax\MathUtils\ThreeD\Vector3d  $vector) : float

Computes the dot product of the this vector and vector $vector.

Parameters

\Tazorax\MathUtils\ThreeD\Vector3d $vector

the other vector

Returns

float

lengthSquared()

lengthSquared() : float

Returns the squared length of this vector.

Returns

float —

the squared length of this vector

length()

length() : float

Returns the length of this vector.

Returns

float —

the length of this vector

normalize()

normalize() : \Tazorax\MathUtils\ThreeD\Vector3d

Normalizes this vector in place.

Throws

\Tazorax\MathUtils\Exception

Returns

\Tazorax\MathUtils\ThreeD\Vector3d