struct Shale::Vector4(T)

Defined in:

shale/vector.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(x : T, y : T, z : T, w : T) #

[View source]

Instance Method Detail

def *(other : self) : self #

[View source]
def *(value : Number) : self #

[View source]
def +(other : self) : self #

[View source]
def +(value : Number) : self #

[View source]
def -(other : self) : self #

[View source]
def -(value : Number) : self #

[View source]
def /(other : self) : self #

[View source]
def /(value : Number) : self #

[View source]
def ==(other : self) : Bool #

[View source]
def abs : self #

[View source]
def cross(other : self) : self #

[View source]
def dot(other : self) : Float #

[View source]
def len : Float #

[View source]
def lerp(other : self, factor : Float32) : self #

[View source]
def max : Float #

[View source]
def normalized : self #

[View source]
def w : T #

[View source]
def x : T #

[View source]
def y : T #

[View source]
def z : T #

[View source]

Macro Detail

macro [](*args) #

[View source]