struct

CrystalEdge::Vector4

Inherits Struct < Value < Object

Constructors

new(x : Float64, y : Float64, z : Float64, w : Float64)
Source

Class methods

zero

Zero vector

Source

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)
Source
clone
Source
clone
Source
cross(other : Vector4)

Cross product

Source
distance(other : Vector4)
Source
dot(other : Vector4)

Dot product

Source
magnitude
Source
normalize
Source
normalize!
Source
to_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.

Source
values
Source
w=(w : Float64)
Source
x=(x : Float64)
Source
y=(y : Float64)
Source
z=(z : Float64)
Source
zero!
Source