Class: ubytearray

Unsigned byte array in Luxinia for array operations.

Hierarchy

o-+ mathlib
  o-+ staticarray
    o-+ ubytearray

Methods:

Method overview:


new (int count)
returns: (ubytearray)
creates a new staticarray. Count must be >0.
add (ubytearray self,ubytearray / value a, [ubytearray b])
returns: ()
self+=a or self = a + b
div (ubytearray self,ubytearray / value a, [ubytearray b])
returns: ()
self/=a or self = a / b
fromushort (ubytearray,ushortarray,int min,max)
returns: ()
copies content to ubytearray. Min will become 0 and max 255
max (ubytearray self,ubytearray / value a, [ubytearray b])
returns: ()
self = max(self,a) or self = max(a,b)
min (ubytearray self,ubytearray / value a, [ubytearray b])
returns: ()
self = min(self,a) or self = min(a,b)
mul (ubytearray self,ubytearray / value a, [ubytearray b])
returns: ()
self*=a or self = a * b
set (ubytearray self,ubytearray / value a)
returns: ()
self = a (copy an array or set value to all)
sub (ubytearray self,ubytearray / value a, [ubytearray b])
returns: ()
self-=a or self = a - b
vector3 (ubytearray,int index, [int x,y,z])
returns: ([int x,y,z])
returns or sets ith vector3, make sure count is 3*maxindex.
vector3all (ubytearray,int x,y,z,[int startubyte, vectorcount, stride])
returns: ()
returns or sets all values of the ubytearray, optionally can set from which int to start and how many vectors. Vectorsize is 3+stride.
vector4 (ubytearray,int index, [int x,y,z,w])
returns: ([int x,y,z,w])
returns or sets ith vector4, make sure count is 4*maxindex.

Inherited Methods:

From staticarray

clamp, count, datapointer, fromstring, index, mounted, resize

From mathlib

quatslerpq, quatslerpqt