Language
Edit

BoundsCalculator.CalculateFlattenVector(Vector3) Method

Definition

Compute the flattening vector for a bounds of size size.

public static UnityEngine.Vector3 CalculateFlattenVector(UnityEngine.Vector3 size);
static member CalculateFlattenVector : UnityEngine.Vector3 -> UnityEngine.Vector3
Public Shared Function CalculateFlattenVector (size As Vector3) As Vector3

Parameters

size
UnityEngine.Vector3

The size of the bounds to compute the flatten vector for.

Returns

UnityEngine.Vector3

Returns a unit vector along the direction of the smallest component of size.

Remarks

Returns Vector3.forward if all components are approximately equal.

Applies to