TransformExtensions.

TransformPosition(TransformComponent, Vector3) Method

Summary

Performs a coordinate transformation using the given TransformComponent.WorldMatrix.
Namespace
StrideToolkit.Engine
Containing Type
TransformExtensions

Syntax

public static Vector3 TransformPosition(this TransformComponent transform, Vector3 position)

Remarks

This method does not update the TransformComponent.WorldMatrix before performing the transformation. If the TransformComponent has been modified since the last frame you may need to call the TransformComponent.UpdateWorldMatrix method first.

Parameters

Name Type Description
transform TransformComponent The transform to get the world matrix from.
position Vector3 The coordinate vector to transform.

Return Value

Type Description
Vector3 The transformed coordinate.