Changeset 32663 in project
 Timestamp:
 08/08/15 02:32:59 (5 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

wiki/eggref/4/glmath
r32201 r32663 35 35 Multiply matrix {{A}} by matrix {{B}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in nongarbagecollected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory. 36 36 37 <procedure> (m*s A S [RESULT])</procedure> 38 39 Multiply matrix {{A}} by scalar {{S}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} must be an f32vector and the returned value will be an f32vector located in nongarbagecollected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} must be an f32vector and the returned value will be an f32vector located in normal garbage collected memory. 40 41 <procedure> (m+ A B [RESULT])</procedure> 42 43 Add matrix {{A}} with matrix {{B}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in nongarbagecollected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory. 44 45 <procedure> (m A B [RESULT])</procedure> 46 47 Subtract matrix {{B}} from matrix {{A}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in nongarbagecollected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory. 48 37 49 <procedure> (mat4identity [RESULT])</procedure> 38 50 … … 159 171 <procedure> (perspective WIDTH HEIGHT NEAR FAR ANGLE [RESULT])</procedure> 160 172 161 Create an perspective projection matrix . If the matrix {{RESULT}} is given, it will be modified to contain the result. If {{RESULT}} is {{#t}}, the returned value will be an f32vector located in nongarbagecollected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, the returned value will be an f32vector located in normal garbage collected memory.173 Create an perspective projection matrix with a field of view of {{ANGLE}} degrees. If the matrix {{RESULT}} is given, it will be modified to contain the result. If {{RESULT}} is {{#t}}, the returned value will be an f32vector located in nongarbagecollected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, the returned value will be an f32vector located in normal garbage collected memory. 162 174 163 175 <procedure> (frustum LEFT RIGHT BOTTOM TOP NEAR FAR [RESULT])</procedure> … … 345 357 === Version history 346 358 359 ==== Version 0.8.0 360 7 August 2014 361 362 * Add {{m*}}, {{m+}}, {{m}} 363 364 365 ==== Version 0.7.0 366 * Add {{frustum}}, {{frustumviewport}} 367 368 347 369 ==== Version 0.6.0 348 370 8 October 2014
Note: See TracChangeset
for help on using the changeset viewer.