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