BoundsCalculator.CalculateFlattenVector(Vector3) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns a unit vector along the direction of the smallest component of size.
Remarks
Returns Vector3.forward if all components are approximately equal.