struct CrystalEdge::Vector3
- CrystalEdge::Vector3
- Struct
- Value
- Object
Defined in:
crystaledge/quaternion.crcrystaledge/vector3.cr
Constructors
- .new(x : Float64, y : Float64, z : Float64)
- .new(matrix : Matrix(Float64, N, M)) forall N, M
- .new(angle : Vector3, length : Float64 = 1.0)
Class Method Summary
-
.zero
Zero vector
Instance Method Summary
- #!=(other : Vector3)
- #%(other : Vector3)
- #*(other : Vector3)
- #*(other : Float64)
- #**(other : Vector3)
- #+(other : Vector3)
- #+(other : Float64)
- #-(other : Vector3)
- #-(other : Float64)
- #-
- #/(other : Vector3)
- #/(other : Float64)
- #==(other : self)
- #angle(other : Vector3)
- #angle
- #clone
- #clone(&b)
-
#cross(other : Vector3)
Cross product
- #distance(other : Vector3)
-
#dot(other : Vector3)
Dot product
- #find_normal_axis(other : Vector3)
- #heading
- #magnitude
- #normalize
- #normalize!
- #reflect(q : Quaternion)
- #rotate(euler : Vector3)
- #rotate(q : Quaternion)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #values
- #x : Float64
- #x=(x : Float64)
- #y : Float64
- #y=(y : Float64)
- #z : Float64
- #z=(z : Float64)
- #zero!
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.