- class adam_sim.entities.vector.Vector(u: float, v: float, w: float)
a named tuple that contains the information of a 3D free vector in space
- 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
Methods
normalize(self):
returns a normalized vector of the instance
- 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