class bgplot.entities.vector.Vector(u: float, v: float, w: float)

a named tuple that contains the information of a 3D free vector in space

Notes

supports addition and subtraction with other Vector class instances. supports scalar multiplication

Attributes:
ufloat

the value of the first element on the u-v-w axes

vfloat

the value of the second element on the u-v-w axes

wfloat

the value of the third element on the u-v-w axes

normalize()

normalizes the vector so its magnitude is unitary

Returns:
out~.entities.vector.Vector

the normalized instance of the vector

u: float

Alias for field number 0

v: float

Alias for field number 1

w: float

Alias for field number 2