struct Boleite::VectorImp(Type, Size)
- Boleite::VectorImp(Type, Size)
- Struct
- Value
- Object
Defined in:
boleite/math/vector_imp.crboleite/serializers/vector.cr
Constant Summary
-
SIZE =
Size
-
TYPE =
Type
Constructors
- .new(vec : VectorImp(U, Size)) forall U
- .new(elements : StaticArray(Type, Size))
- .new(elements : Array(Type))
- .new
- .new(&)
- .new(*args)
- .one : self
- .zero : self
Class Method Summary
Instance Method Summary
- #*(other : VectorImp(Type, Size)) : self
- #*(other : Type) : self
- #+(other : VectorImp(Type, Size)) : self
- #+(other : Type) : self
- #-(other : VectorImp(Type, Size)) : self
- #-(other : Type) : self
- #-
- #/(other : VectorImp(Type, Size)) : self
- #/(other : Type) : self
- #//(other : VectorImp(Type, Size)) : self
- #//(other : Type) : self
- #==(other : self)
- #[](index)
- #[]=(index, value)
- #a
- #a=(val)
- #b
- #b=(val)
- #each(&)
- #each_index(&)
- #g
- #g=(val)
- #map(&)
- #r
- #r=(val)
- #sum(&)
- #to_f
- #to_f32
- #to_f64
- #to_i
- #to_i16
- #to_i32
- #to_i64
- #to_i8
-
#to_s(io : IO)
Same as
#inspect(io)
. - #to_u
- #to_u16
- #to_u32
- #to_u64
- #to_u8
- #w
- #w=(val)
- #x
- #x=(val)
- #y
- #y=(val)
- #z
- #z=(val)