MathExtensions.LinearToCubicIndex(Int32, Vector3Int) 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.
Convert a 3D texture's linear index to its cubic representation.
public:
static UnityEngine::Vector3Int LinearToCubicIndex(int linearIndex, UnityEngine::Vector3Int size);
public static UnityEngine.Vector3Int LinearToCubicIndex (int linearIndex, UnityEngine.Vector3Int size);
static member LinearToCubicIndex : int * UnityEngine.Vector3Int -> UnityEngine.Vector3Int
Public Function LinearToCubicIndex (linearIndex As Integer, size As Vector3Int) As Vector3Int
Parameters
- linearIndex
- Int32
A linear index into a 3D texture.
- size
- UnityEngine.Vector3Int
The 3D texture's dimensions or size.
Returns
UnityEngine.Vector3Int
The cubic index for the given linear index and size.