Changeset 31301 in project
 Timestamp:
 08/27/14 19:02:11 (5 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

wiki/eggref/4/glmath
r31067 r31301 27 27 Prints the given {{MATRIX}} to {{(currentoutputport)}}. 28 28 29 <procedure> (copymat4 MATRIX [RESULT])</procedure> 30 31 Make a copy of {{MATRIX}}. If the matrix {{RESULT}} is given, it will be modified to contain the contents of {{MATRIX}}. If {{RESULT}} is {{#t}}, {{MATRIX}} must be an f32vector and the returned value will be an f32vector located in nongarbage collected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{MATRIX}} must be an f32vector and the returned value will be an f32vector located in normal garbage collected memory. 32 29 33 <procedure> (m* A B [RESULT])</procedure> 30 34 … … 93 97 <procedure> (rotateypr YAW PITCH ROLL MATRIX)</procedure> 94 98 95 .Rotate {{MATRIX}} by {{ROLL}} radians followed by {{PITCH}} radians followed by {{YAW}} radians.99 Rotate {{MATRIX}} by {{ROLL}} radians followed by {{PITCH}} radians followed by {{YAW}} radians. 96 100 97 101 <procedure> (2dscaling SCALEX SCALEY [RESULT])</procedure> … … 185 189 Destructively multiply the 3 element f32vector {{VECTOR}} by {{MATRIX}}. 186 190 187 <procedure> (m*vectorarray! MATRIX VECTORS [STRIDE])</procedure>188 189 Destructively multiply the array of 3 element f 32vectors {{VECTORS}} by {{MATRIX}}. The optional {{STRIDE}} specifies the number of elements between consecutive vectors. When {{MATRIX}} is a pointer, stride is given in number of bytes and must be at least 12. When {{MATRIX}} is an f32vector, stride is given in number of floats and must be at least 3.191 <procedure> (m*vectorarray! MATRIX VECTORS stride: [STRIDE] length: [LENGTH])</procedure> 192 193 Destructively multiply the array of 3 element floats {{VECTORS}} by {{MATRIX}}. The keyword {{STRIDE}} specifies the number of elements between consecutive vectors, given in bytes (which must be at least 12). {{VECTORS}} may be given as an f32vector or a pointer. When given as a pointer, the keyword {{LENGTH}} must be provided, specifying the number of vectors in {{VECTORS}}. 190 194 191 195 … … 222 226 === Version history 223 227 224 ==== Version 0.3.1 228 === Version 0.4.0 229 27 July 2014 230 231 * Add {{copymat4}} 232 233 234 ==== Version 0.3.2 235 21 July 2014 236 237 * Allow pointer to array of vectors to be passed to {{m*vectorarray!}} 238 * Fix error forms 239 240 '''Version 0.3.1''' 241 225 242 23 June 2014 226 243
Note: See TracChangeset
for help on using the changeset viewer.