struct Chem::Spatial::Quaternion
- Chem::Spatial::Quaternion
- Struct
- Value
- Object
Defined in:
chem/spatial/quaternion.crConstructors
- .[](w : Float64, x : Float64, y : Float64, z : Float64) : self
- .aligning(v1 : Vector, to v2 : Vector) : self
- .identity : self
- .new(w : Float64, v : Vector)
- .rotation(about rotaxis : Vector, by theta : Float64) : self
- .zero : self
Instance Method Summary
- #*(other : self) : self
- #*(other : Vector) : self
- #*(other : Number) : self
- #+(other : self) : self
- #-(other : self) : self
- #- : self
- #/(other : Number) : self
- #[](index : Int) : Float64
- #conj : self
- #dot(other : self) : Float64
- #inv : self
- #norm : Float64
- #normalize : self
- #rotate(vec : Vector) : Vector
- #unit? : Bool
- #v : Vector
- #w : Float64
- #zero? : Bool