Changeset 32663 in project


Ignore:
Timestamp:
08/08/15 02:32:59 (4 years ago)
Author:
acharlton
Message:

wiki/gl-math: Update to 0.8.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/gl-math

    r32201 r32663  
    3535Multiply 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 non-garbage-collected 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.
    3636
     37<procedure> (m*s A S [RESULT])</procedure>
     38
     39Multiply 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 non-garbage-collected 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
     43Add 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 non-garbage-collected 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
     47Subtract 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 non-garbage-collected 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
    3749<procedure> (mat4-identity [RESULT])</procedure>
    3850
     
    159171<procedure> (perspective WIDTH HEIGHT NEAR FAR ANGLE [RESULT])</procedure>
    160172
    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 non-garbage-collected 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.
     173Create 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 non-garbage-collected 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.
    162174
    163175<procedure> (frustum LEFT RIGHT BOTTOM TOP NEAR FAR [RESULT])</procedure>
     
    345357=== Version history
    346358
     359==== Version 0.8.0
     3607 August 2014
     361
     362* Add {{m*}}, {{m+}}, {{m-}}
     363
     364
     365==== Version 0.7.0
     366* Add {{frustum}}, {{frustum-viewport}}
     367
     368
    347369==== Version 0.6.0
    3483708 October 2014
Note: See TracChangeset for help on using the changeset viewer.