Documentation
¶
Index ¶
- func Positions(transforms []TRS) []vector3.Float64
- func Rotations(transforms []TRS) []quaternion.Quaternion
- func Scales(transforms []TRS) []vector3.Float64
- type ArrayNode
- type FilterPositionNode
- type FilterScaleNode
- type MultiplyArrayNode
- type MultiplyNode
- type MultiplyToArrayNode
- type NewNode
- type RandomizeArrayNode
- type RotateDirectionNode
- type RotateDirectionsNode
- type SelectArrayNode
- type SelectNode
- type TRS
- func (trs TRS) Inverse() TRS
- func (trs TRS) LookAt(positionToLookAt vector3.Float64) 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) SetRotation(in quaternion.Quaternion) TRS
- func (trs TRS) SetScale(in vector3.Float64) TRS
- func (trs TRS) SetTranslation(in vector3.Float64) TRS
- 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
- func (trs TRS) WithinDelta(in TRS, delta float64) error
- type TransformArrayNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rotations ¶ added in v0.34.0
func Rotations(transforms []TRS) []quaternion.Quaternion
Types ¶
type ArrayNode ¶ added in v0.22.2
type FilterPositionNode ¶ added in v0.27.0
type FilterPositionNode struct {
Input nodes.Output[[]TRS]
MinX nodes.Output[float64]
MinY nodes.Output[float64]
MinZ nodes.Output[float64]
MaxX nodes.Output[float64]
MaxY nodes.Output[float64]
MaxZ nodes.Output[float64]
}
func (FilterPositionNode) Filter ¶ added in v0.27.0
func (tnd FilterPositionNode) Filter(out *nodes.StructOutput[[]TRS]) ([]TRS, []TRS)
func (FilterPositionNode) Kept ¶ added in v0.27.0
func (tnd FilterPositionNode) Kept(out *nodes.StructOutput[[]TRS])
func (FilterPositionNode) Removed ¶ added in v0.27.0
func (tnd FilterPositionNode) Removed(out *nodes.StructOutput[[]TRS])
type FilterScaleNode ¶ added in v0.27.0
type FilterScaleNode struct {
Input nodes.Output[[]TRS]
MinX nodes.Output[float64]
MinY nodes.Output[float64]
MinZ nodes.Output[float64]
MaxX nodes.Output[float64]
MaxY nodes.Output[float64]
MaxZ nodes.Output[float64]
}
func (FilterScaleNode) Filter ¶ added in v0.27.0
func (tnd FilterScaleNode) Filter(out *nodes.StructOutput[[]TRS]) ([]TRS, []TRS)
func (FilterScaleNode) Kept ¶ added in v0.27.0
func (tnd FilterScaleNode) Kept(out *nodes.StructOutput[[]TRS])
func (FilterScaleNode) Removed ¶ added in v0.27.0
func (tnd FilterScaleNode) Removed(out *nodes.StructOutput[[]TRS])
type MultiplyArrayNode ¶ added in v0.23.0
func (MultiplyArrayNode) Out ¶ added in v0.32.0
func (tnd MultiplyArrayNode) Out(out *nodes.StructOutput[[]TRS])
type MultiplyNode ¶ added in v0.23.0
func (MultiplyNode) Out ¶ added in v0.32.0
func (tnd MultiplyNode) Out(out *nodes.StructOutput[TRS])
type MultiplyToArrayNode ¶ added in v0.27.0
type MultiplyToArrayNode struct {
Left nodes.Output[TRS]
Array nodes.Output[[]TRS]
Right nodes.Output[TRS]
}
func (MultiplyToArrayNode) Description ¶ added in v0.32.0
func (n MultiplyToArrayNode) Description() string
func (MultiplyToArrayNode) Out ¶ added in v0.32.0
func (n MultiplyToArrayNode) Out(out *nodes.StructOutput[[]TRS])
type NewNode ¶ added in v0.22.2
type RandomizeArrayNode ¶ added in v0.26.0
type RandomizeArrayNode struct {
TranslationMinimum nodes.Output[vector3.Float64]
TranslationMaximum nodes.Output[vector3.Float64]
ScaleMinimum nodes.Output[vector3.Float64]
ScaleMaximum nodes.Output[vector3.Float64]
RotationMinimum nodes.Output[vector3.Float64]
RotationMaximum nodes.Output[vector3.Float64]
Array nodes.Output[[]TRS]
}
func (RandomizeArrayNode) Out ¶ added in v0.32.0
func (tnd RandomizeArrayNode) Out(out *nodes.StructOutput[[]TRS])
type RotateDirectionNode ¶ added in v0.23.0
func (RotateDirectionNode) Out ¶ added in v0.32.0
func (tnd RotateDirectionNode) Out(out *nodes.StructOutput[vector3.Float64])
type RotateDirectionsNode ¶ added in v0.23.0
type RotateDirectionsNode struct {
TRS nodes.Output[[]TRS]
Direction nodes.Output[[]vector3.Float64]
}
func (RotateDirectionsNode) Out ¶ added in v0.32.0
func (tnd RotateDirectionsNode) Out(out *nodes.StructOutput[[]vector3.Float64])
type SelectArrayNode ¶ added in v0.23.0
func (SelectArrayNode) Position ¶ added in v0.32.0
func (tnd SelectArrayNode) Position(out *nodes.StructOutput[[]vector3.Float64])
func (SelectArrayNode) Rotation ¶ added in v0.32.0
func (tnd SelectArrayNode) Rotation(out *nodes.StructOutput[[]quaternion.Quaternion])
func (SelectArrayNode) Scale ¶ added in v0.32.0
func (tnd SelectArrayNode) Scale(out *nodes.StructOutput[[]vector3.Float64])
type SelectNode ¶ added in v0.23.0
func (SelectNode) Position ¶ added in v0.32.0
func (tnd SelectNode) Position(out *nodes.StructOutput[vector3.Float64])
func (SelectNode) Rotation ¶ added in v0.32.0
func (tnd SelectNode) Rotation(out *nodes.StructOutput[quaternion.Quaternion])
func (SelectNode) Scale ¶ added in v0.32.0
func (tnd SelectNode) Scale(out *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) LookAt ¶ added in v0.27.0
Look at returns a new TRS with it's rotation modified to be looking at the position provided
func (TRS) RotateDirection ¶ added in v0.23.0
func (TRS) SetRotation ¶ added in v0.25.0
func (trs TRS) SetRotation(in quaternion.Quaternion) TRS
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
type TransformArrayNode ¶ added in v0.26.0
func (TransformArrayNode) Out ¶ added in v0.32.0
func (tnd TransformArrayNode) Out(out *nodes.StructOutput[[]TRS])
Click to show internal directories.
Click to hide internal directories.