package scad_ml

  1. Overview
  2. Docs

Module Scad_ml.MultMatrixSource

An affine transformation matrix.

To be used with OpenSCADs multmatrix, which is applied in this library with Scad.multmatrix.

Sourcetype t = private float array array
Sourceval of_row_list_exn : (float * float * float * float) list -> t

of_row_list_exn l

Create a rotation matrix from a list l of three or four rows. If only three rows are provided, the final row is set to [| 0.; 0.; 0.; 1. |] Throws an exception if l is not the correct length.

Sourceval of_row_list : (float * float * float * float) list -> (t, string) result
Sourceval to_string : t -> string
Sourceval mul : t -> t -> t
Sourceval add : t -> t -> t
Sourceval sub : t -> t -> t
Sourceval transpose : t -> t
Sourceval map : (float -> float) -> t -> t
Sourceval mul_scalar : t -> float -> t
Sourceval div_scalar : t -> float -> t
Sourceval add_scalar : t -> float -> t
Sourceval sub_scalar : t -> float -> t
OCaml

Innovation. Community. Security.