Documentation
¶
Index ¶
- type ArrayNode
- type ArrayNodeData
- type NewNode
- type NewNodeData
- type TRS
- func (trs TRS) Matrix() mat.Matrix4x4
- func (trs TRS) Multiply(other TRS) 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 ArrayNodeData ¶ added in v0.22.2
type ArrayNodeData struct { Position nodes.NodeOutput[[]vector3.Float64] Scale nodes.NodeOutput[[]vector3.Float64] Rotation nodes.NodeOutput[[]quaternion.Quaternion] }
func (ArrayNodeData) Process ¶ added in v0.22.2
func (tnd ArrayNodeData) Process() ([]TRS, error)
type NewNodeData ¶ added in v0.22.2
type NewNodeData struct { Position nodes.NodeOutput[vector3.Float64] Scale nodes.NodeOutput[vector3.Float64] Rotation nodes.NodeOutput[quaternion.Quaternion] }
func (NewNodeData) Process ¶ added in v0.22.2
func (tnd NewNodeData) Process() (TRS, error)
type TRS ¶
type TRS struct {
// contains filtered or unexported fields
}
func FromMatrix ¶ added in v0.22.2
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) Matrix ¶ added in v0.22.2
https://github.com/UltravioletFramework/ultraviolet/issues/92
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.