Documentation
¶
Index ¶
- type Basis
- func (b *Basis) Determinant() float64
- func (b Basis) GetColumn(index int) []float64
- func (b Basis) GetMainDiagonal() []float64
- func (b *Basis) Invert() error
- func (b *Basis) Set(pXX, pXY, pXZ, pYX, pYY, pYZ, pZX, pZY, pZZ float64)
- func (b *Basis) SetAxisAngle(axis [3]float64, angle float64)
- func (b *Basis) SetColumn(index int, value [3]float64)
- func (b *Basis) SetColumns(x, y, z [3]float64)
- func (b Basis) TransposeXform(m Basis) Basis
- func (b Basis) Xform(pVector [3]float64) [3]float64
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basis ¶
type Basis struct {
Rows [3][3]float64
}
func FromAxisAndAngle ¶
func (*Basis) Determinant ¶
func (Basis) GetMainDiagonal ¶
GetMainDiagonal returns the main diagonal of the basis matrix.
func (*Basis) SetAxisAngle ¶
Set the basis matrix to represent a rotation around the given axis by the specified angle.
func (*Basis) SetColumns ¶
SetColumns sets the columns of the basis matrix.
func (Basis) TransposeXform ¶
TransposeXform returns the result of transposing and multiplying the provided basis matrix with this basis matrix.
Click to show internal directories.
Click to hide internal directories.