CrystalEdge::Vector3
Inherits Struct < Value < Object
Constructors
new(x : Float64, y : Float64, z : Float64)
Sourcenew(matrix : Matrix(Float64, N, M)) forall N, M
Sourcenew(angle : Vector3, length : Float64 = 1.0)
SourceClass methods
Instance methods
!=(other : Vector3)
Source%(other : Vector3)
Source*(other : Vector3)
Source*(other : Float64)
Source**(other : Vector3)
Source+(other : Vector3)
Source+(other : Float64)
Source-(other : Vector3)
Source-(other : Float64)
Source/(other : Vector3)
Source/(other : Float64)
Source==(other : self)
Sourceangle(other : Vector3)
Sourceangle
Sourceclone
Sourceclone
Sourcedistance(other : Vector3)
Sourcefind_normal_axis(other : Vector3)
Sourceheading
Sourcemagnitude
Sourcenormalize
Sourcenormalize!
Sourcereflect(q : Quaternion)
Sourcerotate(euler : Vector3)
Sourcerotate(q : Quaternion)
Sourceto_s
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.
values
Sourcex=(x : Float64)
Sourcey=(y : Float64)
Sourcez=(z : Float64)
Sourcezero!
Source