vytools_tpl.hpp is for the template classes of the C++ part.
All declarations are in the vyt namespace.
It contains data class for arrays, vectors, rectangles
and affine transforms.
class ArrayData: public RefData
Data class for reference-counted arrayssize Current size of array
values The stored values
ArrayData()
Basic constructor
ArrayData( const ArrayData & a )
Copy constructor
ArrayData( Uint n )
Constructor with sizen Array size
~ArrayData()
Destructor
void Throws exception if index is out of bounds i Index
void resize( Uint n )
Resize array datan New size
void set( Uint at, const T * ts, Uint n )
Set values at an indexat Index
ts Pointer to values
n Number of values at ts
operator T *()
Pointer to valuesreturn Pointer
operator Constant pointer to values return Pointer
Uint Current size of array return Size
class Array: public RefCount
Reference counted arrayArrayData * vref()
Pointer to the array datareturn Pointer
operator T*()
Cast to pointer
class Vec2
2-dimensional vectorx X coordinate
y Y coordinate
Vec2( T x, T y )
Constructorx X coordinate
y Y coordinate
class Rect
Rectangletop Top cooridnate
left Left coordinate
width Width of rectangle
height Height of rectangle
Rect( T top, T left, T width, T height )
Constructortop Top cooridnate
left Left coordinate
width Width of rectangle
height Height of rectangle
class Trans2
2-dimensional affine transformationsx X coordinate scale
rx X coordinate rotate
ry Y coordinate rotate
sy Y coordinate scale
dx X coordinate shift
dy Y coordinate shift
Trans2( T sx, T rx, T ry, T sy, T dx, T dy )
Constructorsx X coordinate scale
rx X coordinate rotate
ry Y coordinate rotate
sy Y coordinate scale
dx X coordinate shift
dy Y coordinate shift
IVec2
2-dimensional vector of Int
UVec2
2-dimensional vector of Uint
URect
Rectangle of Uint
FTrans2
2-dimensional affine transformation of Float