Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mat3 ¶
func Rotate3DY ¶
Rotate3DY returns a 3x3 (non-homogeneous) Matrix that rotates by angle about the Y-axis
Where c is cos(angle) and s is sin(angle)
[c 0 s] [0 1 0] [s 0 c ]
func Rotate3DZ ¶
Rotate3DZ returns a 3x3 (non-homogeneous) Matrix that rotates by angle about the Z-axis
Where c is cos(angle) and s is sin(angle)
[c -s 0] [s c 0] [0 0 1 ]
func Translate2D ¶
Translate2D returns a homogeneous (3x3 for 2D-space) Translation matrix that moves a point by Tx units in the x-direction and Ty units in the y-direction
[[1, 0, Tx]] [[0, 1, Ty]] [[0, 0, 1 ]]
func (*Mat3) Initialize ¶
Initialize defines a 3-D Matrix.
| x | | y | | 1 |
| e0 e3 e6 | | e1 e4 e7 | | e2 e5 e8 |
func (*Mat3) InitializeScale1 ¶
type Mat4 ¶
func Perspective ¶
func Translate3D ¶
Translate3D returns a homogeneous (4x4 for 3D-space) Translation matrix that moves a point by Tx units in the x-direction, Ty units in the y-direction, and Tz units in the z-direction
[[1, 0, 0, Tx]] [[0, 1, 0, Ty]] [[0, 0, 1, Tz]] [[0, 0, 0, 1 ]]