CrystalEdge::Vector4
Inherits Struct < Value < Object
Constructors
new(x : Float64, y : Float64, z : Float64, w : Float64)
SourceClass methods
Instance methods
!=(other : Vector4)
Source%(other : Vector4)
Source*(other : Vector4)
Source*(other : Float64)
Source**(other : Vector4)
Source+(other : Vector4)
Source+(other : Float64)
Source-(other : Vector4)
Source-(other : Float64)
Source/(other : Vector4)
Source/(other : Float64)
Source==(other : Vector4)
Sourceclone
Sourceclone
Sourcedistance(other : Vector4)
Sourcemagnitude
Sourcenormalize
Sourcenormalize!
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
Sourcew=(w : Float64)
Sourcex=(x : Float64)
Sourcey=(y : Float64)
Sourcez=(z : Float64)
Sourcezero!
Source