Changeset 31301 in project


Ignore:
Timestamp:
08/27/14 19:02:11 (5 years ago)
Author:
acharlton
Message:

gl-math wiki: Update to 0.4.0

File:
1 edited

Legend:

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

    r31067 r31301  
    2727Prints the given {{MATRIX}} to {{(current-output-port)}}.
    2828
     29<procedure> (copy-mat4 MATRIX [RESULT])</procedure>
     30
     31Make 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 non-garbage 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
    2933<procedure> (m* A B [RESULT])</procedure>
    3034
     
    9397<procedure> (rotate-ypr YAW PITCH ROLL MATRIX)</procedure>
    9498
    95 .Rotate {{MATRIX}} by {{ROLL}} radians followed by {{PITCH}} radians followed by {{YAW}} radians.
     99Rotate {{MATRIX}} by {{ROLL}} radians followed by {{PITCH}} radians followed by {{YAW}} radians.
    96100
    97101<procedure> (2d-scaling SCALE-X SCALE-Y [RESULT])</procedure>
     
    185189Destructively multiply the 3 element f32vector {{VECTOR}} by {{MATRIX}}.
    186190
    187 <procedure> (m*vector-array! MATRIX VECTORS [STRIDE])</procedure>
    188 
    189 Destructively multiply the array of 3 element f32vectors {{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*vector-array! MATRIX VECTORS stride: [STRIDE] length: [LENGTH])</procedure>
     192
     193Destructively 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}}.
    190194
    191195
     
    222226=== Version history
    223227
    224 ==== Version 0.3.1
     228=== Version 0.4.0
     22927 July 2014
     230
     231* Add {{copy-mat4}}
     232
     233
     234==== Version 0.3.2
     23521 July 2014
     236
     237* Allow pointer to array of vectors to be passed to {{m*vector-array!}}
     238* Fix error forms
     239
     240'''Version 0.3.1'''
     241
    22524223 June 2014
    226243
Note: See TracChangeset for help on using the changeset viewer.