Documentation
¶
Index ¶
- type ArrayNode
- type ArrayNodeData
- type MultiplyArrayNode
- type MultiplyArrayNodeData
- type MultiplyNode
- type MultiplyNodeData
- type NewNode
- type NewNodeData
- type RotateDirectionNode
- type RotateDirectionNodeData
- type RotateDirectionsNode
- type RotateDirectionsNodeData
- type SelectArrayNode
- type SelectArrayNodeData
- type SelectNode
- type SelectNodeData
- type TRS
- func (trs TRS) Matrix() mat.Matrix4x4
- func (trs TRS) Multiply(other TRS) TRS
- func (trs TRS) Position() vector3.Float64
- func (trs TRS) RotateDirection(in vector3.Float64) 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 ArrayNode ¶ added in v0.22.2
type ArrayNode = nodes.Struct[ArrayNodeData]
type ArrayNodeData ¶ added in v0.22.2
type ArrayNodeData struct {
Position nodes.Output[[]vector3.Float64]
Scale nodes.Output[[]vector3.Float64]
Rotation nodes.Output[[]quaternion.Quaternion]
}
func (ArrayNodeData) Out ¶ added in v0.23.0
func (tnd ArrayNodeData) Out() nodes.StructOutput[[]TRS]
type MultiplyArrayNode ¶ added in v0.23.0
type MultiplyArrayNode = nodes.Struct[MultiplyArrayNodeData]
type MultiplyArrayNodeData ¶ added in v0.23.0
func (MultiplyArrayNodeData) Out ¶ added in v0.23.0
func (tnd MultiplyArrayNodeData) Out() nodes.StructOutput[[]TRS]
type MultiplyNode ¶ added in v0.23.0
type MultiplyNode = nodes.Struct[MultiplyNodeData]
type MultiplyNodeData ¶ added in v0.23.0
func (MultiplyNodeData) Out ¶ added in v0.23.0
func (tnd MultiplyNodeData) Out() nodes.StructOutput[TRS]
type NewNode ¶ added in v0.22.2
type NewNode = nodes.Struct[NewNodeData]
type NewNodeData ¶ added in v0.22.2
type NewNodeData struct {
Position nodes.Output[vector3.Float64]
Scale nodes.Output[vector3.Float64]
Rotation nodes.Output[quaternion.Quaternion]
}
func (NewNodeData) Out ¶ added in v0.23.0
func (tnd NewNodeData) Out() nodes.StructOutput[TRS]
type RotateDirectionNode ¶ added in v0.23.0
type RotateDirectionNode = nodes.Struct[RotateDirectionNodeData]
type RotateDirectionNodeData ¶ added in v0.23.0
type RotateDirectionNodeData struct {
TRS nodes.Output[TRS]
Direction nodes.Output[vector3.Float64]
}
func (RotateDirectionNodeData) Out ¶ added in v0.23.0
func (tnd RotateDirectionNodeData) Out() nodes.StructOutput[vector3.Float64]
type RotateDirectionsNode ¶ added in v0.23.0
type RotateDirectionsNode = nodes.Struct[RotateDirectionNodeData]
type RotateDirectionsNodeData ¶ added in v0.23.0
type RotateDirectionsNodeData struct {
TRS nodes.Output[[]TRS]
Direction nodes.Output[[]vector3.Float64]
}
func (RotateDirectionsNodeData) Out ¶ added in v0.23.0
func (tnd RotateDirectionsNodeData) Out() nodes.StructOutput[[]vector3.Float64]
type SelectArrayNode ¶ added in v0.23.0
type SelectArrayNode = nodes.Struct[SelectArrayNodeData]
type SelectArrayNodeData ¶ added in v0.23.0
func (SelectArrayNodeData) Position ¶ added in v0.23.0
func (tnd SelectArrayNodeData) Position() nodes.StructOutput[[]vector3.Float64]
func (SelectArrayNodeData) Rotation ¶ added in v0.23.0
func (tnd SelectArrayNodeData) Rotation() nodes.StructOutput[[]quaternion.Quaternion]
func (SelectArrayNodeData) Scale ¶ added in v0.23.0
func (tnd SelectArrayNodeData) Scale() nodes.StructOutput[[]vector3.Float64]
type SelectNode ¶ added in v0.23.0
type SelectNode = nodes.Struct[SelectNodeData]
type SelectNodeData ¶ added in v0.23.0
func (SelectNodeData) Position ¶ added in v0.23.0
func (tnd SelectNodeData) Position() nodes.StructOutput[vector3.Float64]
func (SelectNodeData) Rotation ¶ added in v0.23.0
func (tnd SelectNodeData) Rotation() nodes.StructOutput[quaternion.Quaternion]
func (SelectNodeData) Scale ¶ added in v0.23.0
func (tnd SelectNodeData) Scale() nodes.StructOutput[vector3.Float64]
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) RotateDirection ¶ added in v0.23.0
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.