vectΒΆ
class vect
A multidimensional packed float array.
Members
| create | (
|
Create a new vect of given size |
| create | (
|
Create a new vect of given size with initialisation |
| create | (
|
Create a new vect of size 1, initialised with the given value |
| barycentric | (
|
Create a vect of interpolated vertices from the set of barycentric coordinates and the triplet of vertices |
| clear | (
|
Free the memory allocated by the vect |
| copy | (
|
Copy data from source to destination at a given position |
| copy | (
|
Copy data from source to destination from a position and a stride |
| copy | (
|
Copy the whole data from source to destination |
| copy | (
|
Copy data from source to destination from a position and a stride |
| dimension | (
|
Return the dimension of the vect, in number of columns |
| get | (
|
Get a single float in the vect |
| get | (
|
Get a whole row in the vect |
| pack | (
|
Duplicate source vect but only keep values which respective mask is different from 0 |
| set | (
|
Set a whole row in the vect |
| size | (
|
Return the size of the vect, in number of rows |
Documentation
Create a vect of interpolated vertices from the set of barycentric coordinates and the triplet of vertices
input a set of barycentric coordinatestable triplet of vertices to interpolate
result the interpolated vertices
Free the memory allocated by the vect
input the vect to clear
Copy data from source to destination at a given position
destination float array to copy intosource float array to copy fromdest_start start position to copy data into (1 indexed)
Copy data from source to destination from a position and a stride
destination float array to copy intosource float array to copy fromdest_start start destination position to copy data into (1 indexed)dest_stride destination stride in number of rows to copy intosrc_start start source position to copy data from (1 indexed)src_stride source stride in number of rows to copy from
Copy the whole data from source to destination
destination float array to copy intosource float array to copy from
Copy data from source to destination from a position and a stride
destination float array to copy intosource float array to copy fromdest_start start position to copy data into (1 indexed)dest_stride destination stride in number of rows to copy
Return the dimension of the vect, in number of columns
input The vect to get the dimension
result the dimension of the vect
Get a single float in the vect
input the vect to get a row fromrow the row of the vect to getcolumn the column of the vect to get
result the value extracted from the vect at row,column
Get a whole row in the vect
input the vect to get a row fromrow the row of the vect to get
result the value extracted from the vect, padded with zeroes if dimension is less than 3
Duplicate source vect but only keep values which respective mask is different from 0
source float array to packmask mask array
result|nil The resulting packed vect, or nil if mask is filled with 0
Set a whole row in the vect
input the vect to setrow the row of the vect to setvalue the value to the in the vect
Return the size of the vect, in number of rows
input The vect to get the size
result the size of the vect