Documentation ¶
Index ¶
- type TRS
- func (trs TRS) Position() vector3.Float64
- func (trs TRS) Rotation() quaternion.Quaternion
- func (trs TRS) Scale() vector3.Float64
- func (trs TRS) Transform(in vector3.Float64) vector3.Float64
- func (trs TRS) TransformArray(in []vector3.Float64) []vector3.Float64
- func (trs TRS) TransformInPlace(in []vector3.Float64)
- func (trs TRS) Translate(in vector3.Float64) TRS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TRS ¶
type TRS struct {
// contains filtered or unexported fields
}
func New ¶
func New(position vector3.Float64, rotation quaternion.Quaternion, scale vector3.Float64) TRS
Create a new TRS
func Position ¶
Create a new TRS with a specified position, with a scale of (1, 1, 1) and a identity rotation
func Rotation ¶
func Rotation(rotation quaternion.Quaternion) TRS
Create a new TRS with a specified rotation, a position of (0, 0, 0) and a scale of (1, 1, 1)
func Scale ¶
Create a new TRS with a specified scale, with a position of (0, 0, 0) and a identity rotation
func (TRS) TransformArray ¶
Transform an array of points by the TRS
func (TRS) TransformInPlace ¶
Transform an array of points by the TRS and store those changes in the array passed in
Click to show internal directories.
Click to hide internal directories.