Scad_ml.RotMatrixA rotation matrix.
Used in conjunction with Quaternion to provide an additional means of rotating OpenSCAD objects and vectors (Vec3.t).
val of_row_list_exn : (float * float * float) list -> tof_row_list_exn l
Create a rotation matrix from a list l of three rows. Throws an exception if l is not the correct length.
val of_row_list : (float * float * float) list -> (t, string) Stdlib.resultval of_col_list_exn : (float * float * float) list -> tof_col_list_exn l
Create a rotation matrix from a list l of three columns. Throws an exception if l is not the correct length.
val of_col_list : (float * float * float) list -> (t, string) Stdlib.resultalign_exn a b
Calculate a rotation matrix that would bring a into alignment with b. Throws an exception if the vectors are equal or zero.
val trace : t -> floattrace t
Sum the elements on the main diagonal (upper left to lower right) of t.
val get : t -> int -> int -> floatget t r c
Get the element at row and column of t. Equivalent to t.(r).(c).