Documentation
¶
Index ¶
- type Mat22
- type Mat33
- type Mat44
- func Identity44() Mat44
- func RotationX(phi float64) Mat44
- func RotationY(phi float64) Mat44
- func RotationZ(phi float64) Mat44
- func Scaling(x, y, z float64) Mat44
- func Shear(xy, xz, yx, yz, zx, zy float64) Mat44
- func Translation(x, y, z float64) Mat44
- func ViewTransform(from, to, up tuple.Tuple) Mat44
- func (m Mat44) Cofactor(rx, cx int) float64
- func (a Mat44) Determinant() float64
- func (a Mat44) Equal(b Mat44) bool
- func (m Mat44) Index(r, c int) float64
- func (a Mat44) Inverse() Mat44
- func (a Mat44) IsInvertible() bool
- func (m Mat44) Minor(rx, cx int) float64
- func (a Mat44) Mul(b Mat44) Mat44
- func (a Mat44) MulTuple(b tuple.Tuple) tuple.Tuple
- func (m Mat44) String() string
- func (m Mat44) Submatrix(rx, cx int) Mat33
- func (a Mat44) Transpose() Mat44
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mat44 ¶
type Mat44 [16]float64
func Identity44 ¶
func Identity44() Mat44
func Translation ¶
func ViewTransform ¶
func (Mat44) Determinant ¶
func (Mat44) IsInvertible ¶
Click to show internal directories.
Click to hide internal directories.