Documentation
¶
Index ¶
- type Mat4
- func (m *Mat4[T]) Mul(x Mat4[T]) *Mat4[T]
- func (m *Mat4[T]) MulScalar(x T) *Mat4[T]
- func (m Mat4[T]) MulV(x Mat4[T]) Mat4[T]
- func (m *Mat4[T]) Rotate(rad float64, axis Vec3[T]) *Mat4[T]
- func (m *Mat4[T]) RotateX(rad float64) *Mat4[T]
- func (m *Mat4[T]) RotateY(rad float64) *Mat4[T]
- func (m *Mat4[T]) RotateZ(rad float64) *Mat4[T]
- func (m *Mat4[T]) SetIdentity() *Mat4[T]
- func (m *Mat4[T]) SetRotationX(rad float64) *Mat4[T]
- func (m *Mat4[T]) SetRotationY(rad float64) *Mat4[T]
- func (m *Mat4[T]) SetRotationZ(rad float64) *Mat4[T]
- func (m *Mat4[T]) Translate(v Vec3[T]) *Mat4[T]
- type Vec3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mat4 ¶
Mat4 is a 4x4 matrix in row major order.
m[4*r + c] is the element in the r'th row and c'th column.
func SetPerspective4 ¶
func (*Mat4[T]) SetIdentity ¶
func (*Mat4[T]) SetRotationX ¶
func (*Mat4[T]) SetRotationY ¶
func (*Mat4[T]) SetRotationZ ¶
Click to show internal directories.
Click to hide internal directories.