Bewerken

Delen via


MathExtensions.LinearToCubicIndex(Int32, Vector3Int) Method

Definition

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.

Applies to