abstract struct LA::AVector4
- LA::AVector4
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
linalg/vector.crConstant Summary
-
COMPONENTS =
[:x, :y, :z, :w]
Constructors
Class Method Summary
Instance Method Summary
- #*(other : Float64)
- #+(other : self)
- #-(other : self)
- #-
- #/(other : Float64)
- #dot(other : self)
- #length
-
#normalize
If the vector has just one component precalculating the inverse would not improve the performance TODO: validate if precalculating is faster for 2 components
- #squared_length
- #w : Float64
- #w=(w : Float64)
- #x : Float64
- #x=(x : Float64)
- #y : Float64
- #y=(y : Float64)
- #z : Float64
- #z=(z : Float64)
Constructor Detail
Class Method Detail
Instance Method Detail
def normalize
#
If the vector has just one component precalculating the inverse would not improve the performance
TODO validate if precalculating is faster for 2 components