TransformExtensions Class

Summary

Extension methods for TransformComponent.
Namespace
StrideToolkit.Engine
Base Types
  • object
graph BT Type-->Base0["object"] Type["TransformExtensions"] class Type type-node

Syntax

public static class TransformExtensions

Fields

Name Constant Value Summary
WorldUp
The default world up vector. The default is Vector3.UnitY.
static

Methods

Name Value Summary
InverseTransformDirection(TransformComponent, Vector3) Vector3
Performs a direction transformation using the inverse of the given TransformComponent.WorldMatrix.
static
InverseTransformDirection(TransformComponent, Vector3, Vector3) void
Performs a direction transformation using the inverse of the given TransformComponent.WorldMatrix.
static
InverseTransformPosition(TransformComponent, Vector3) Vector3
Performs a coordinate transformation using the inverse of the given TransformComponent.WorldMatrix.
static
InverseTransformPosition(TransformComponent, Vector3, Vector3) void
Performs a coordinate transformation using the inverse of the given TransformComponent.WorldMatrix.
static
InverseTransformVector(TransformComponent, Vector3) Vector3
Performs a normal transformation using the inverse of the given TransformComponent.WorldMatrix.
static
InverseTransformVector(TransformComponent, Vector3, Vector3) void
Performs a normal transformation using the inverse of the given TransformComponent.WorldMatrix.
static
LookAt(TransformComponent, TransformComponent, float) void
Sets the transforms rotation so it's forward vector points at the target. The world up vector use is defined by WorldUp.
static
LookAt(TransformComponent, TransformComponent, Vector3, float) void
Sets the transforms rotation so it's forward vector points at the target.
static
LookAt(TransformComponent, TransformComponent, Vector3, float) void
Sets the transforms rotation so it's forward vector points at the target.
static
LookAt(TransformComponent, Vector3, float) void
Sets the transforms rotation so it's forward vector points at the target. The world up vector use is defined by WorldUp.
static
LookAt(TransformComponent, Vector3, float) void
Sets the transforms rotation so it's forward vector points at the target. The world up vector use is defined by WorldUp.
static
LookAt(TransformComponent, Vector3, Vector3, float) void
Sets the transforms rotation so it's forward vector points at the target.
static
LookAt(TransformComponent, Vector3, Vector3, float) void
Sets the transforms rotation so it's forward vector points at the target.
static
Rotate(TransformComponent, Vector3, Space) void
Rotates the given TransformComponent by the specified eulerAngles in the coordinate space defined by relativeTo.
static
Rotate(TransformComponent, Vector3, Space) void
Rotates the given TransformComponent by the specified eulerAngles in the coordinate space defined by relativeTo.
static
TransformDirection(TransformComponent, Vector3) Vector3
Performs a direction transformation using the given TransformComponent.WorldMatrix.
static
TransformDirection(TransformComponent, Vector3, Vector3) void
Performs a direction transformation using the given TransformComponent.WorldMatrix.
static
TransformPosition(TransformComponent, Vector3) Vector3
Performs a coordinate transformation using the given TransformComponent.WorldMatrix.
static
TransformPosition(TransformComponent, Vector3, Vector3) void
Performs a coordinate transformation using the given TransformComponent.WorldMatrix.
static
TransformVector(TransformComponent, Vector3) Vector3
Performs a normal transformation using the given TransformComponent.WorldMatrix.
static
TransformVector(TransformComponent, Vector3, Vector3) void
Performs a normal transformation using the given TransformComponent.WorldMatrix.
static
Translate(TransformComponent, Vector3, Space) void
Moves the given TransformComponent position by the specified translation in the coordinate space defined by relativeTo.
static
Translate(TransformComponent, Vector3, Space) void
Moves the given TransformComponent position by the specified translation in the coordinate space defined by relativeTo.
static
Translate(TransformComponent, Vector3, TransformComponent) void
Moves the given TransformComponent position by the specified translation relative to the local coordinate space of another TransformComponent.
static
Translate(TransformComponent, Vector3, TransformComponent) void
Moves the given TransformComponent position by the specified translation relative to the local coordinate space of another TransformComponent.
static
UpdateTRSFromLocal(TransformComponent) void
Updates the TransformComponent.Position, TransformComponent.Rotation and TransformComponent.Scale members of the given TransformComponent.
static