struct Boleite::VectorImp(Type, Size)

Defined in:

boleite/math/vector_imp.cr
boleite/serializers/vector.cr

Constant Summary

SIZE = Size
TYPE = Type

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(vec : VectorImp(U, Size)) forall U #

[View source]
def self.new(elements : StaticArray(Type, Size)) #

[View source]
def self.new(elements : Array(Type)) #

[View source]
def self.new #

[View source]
def self.new(&) #

[View source]
def self.new(*args) #

[View source]
def self.one : self #

[View source]
def self.zero : self #

[View source]

Class Method Detail

def self.serializer #

[View source]

Instance Method Detail

def *(other : VectorImp(Type, Size)) : self #

[View source]
def *(other : Type) : self #

[View source]
def +(other : VectorImp(Type, Size)) : self #

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

[View source]
def -(other : VectorImp(Type, Size)) : self #

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

[View source]
def - #

[View source]
def /(other : VectorImp(Type, Size)) : self #

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

[View source]
def //(other : VectorImp(Type, Size)) : self #

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

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

[View source]
def [](index) #

[View source]
def []=(index, value) #

[View source]
def a #

[View source]
def a=(val) #

[View source]
def b #

[View source]
def b=(val) #

[View source]
def each(&) #

[View source]
def each_index(&) #

[View source]
def g #

[View source]
def g=(val) #

[View source]
def map(&) #

[View source]
def r #

[View source]
def r=(val) #

[View source]
def sum(&) #

[View source]
def to_f #

[View source]
def to_f32 #

[View source]
def to_f64 #

[View source]
def to_i #

[View source]
def to_i16 #

[View source]
def to_i32 #

[View source]
def to_i64 #

[View source]
def to_i8 #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def to_u #

[View source]
def to_u16 #

[View source]
def to_u32 #

[View source]
def to_u64 #

[View source]
def to_u8 #

[View source]
def w #

[View source]
def w=(val) #

[View source]
def x #

[View source]
def x=(val) #

[View source]
def y #

[View source]
def y=(val) #

[View source]
def z #

[View source]
def z=(val) #

[View source]