struct

CrystalEdge::Vector3

Inherits Struct < Value < Object

Constructors

new(x : Float64, y : Float64, z : Float64)
Source
new(matrix : Matrix(Float64, N, M)) forall N, M
Source
new(angle : Vector3, length : Float64 = 1.0)
Source

Class methods

zero

Zero vector

Source

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

Cross product

Source
distance(other : Vector3)
Source
dot(other : Vector3)

Dot product

Source
find_normal_axis(other : Vector3)
Source
heading
Source
magnitude
Source
normalize
Source
normalize!
Source
reflect(q : Quaternion)
Source
rotate(euler : Vector3)
Source
rotate(q : Quaternion)
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
x=(x : Float64)
Source
y=(y : Float64)
Source
z=(z : Float64)
Source
zero!
Source