TransformExt.GetScaledVector Method (Transform, Vector3)
Gets a vector result of adding a Transform’s right, up and forward vectors scaled by the x, y and z values of a vector.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3 GetScaledVector(
this Transform self,
Vector3 v
)
Parameters
- self
- Type: Transform
Transform whose axes will be used - v
- Type: Vector3
Vector with the x, y and z scale factors
Return Value
Type: Vector3
Vector result of applying the scale factors on the Transform axes and adding them together
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Transform. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also
Reference
TransformExt Class
GetScaledVector Overload
UltimateXR.Extensions.Unity Namespace