Create a matrix out of vectors representing its rows.
Creates a 2D scaling matrix:
m = Mat3.scale (vec2 2 3)
Mat3.transformPoint m (vec2 5 8) == vec2 10 24
Mat3.transformVector m (vec2 5 8) == vec2 10 24Transforms clip space into viewport space.
-- Clip space
--
-- ^ +1
-- |
-- |
-- |
-- -1 y | +1
-- <--------- (0,0) --------->
-- | x
-- |
-- |
-- |
-- v -1
--
--
--
--
--
-- Viewport space
-- width
-- (0,0)------------>
-- |
-- |
-- |
-- |
-- v
-- height
--
--Transforms a point, applying scaling, rotation, and translation.
Transforms a vector, applying scaling and rotation, but not translation.
Transforms a general 3D vector.