 |
MeshTrianglesSorterSortByCameraDistance(Vector3, Boolean, Boolean) Method |
Sorts the triangle indices by distance to the specified camera position and returns the sorted triangle indices.
When the checkIfAlreadySorted parameter is true (by default), then the currently sorted positions are first checked if they are already sorted and in this case do not sort the array.
The sorted positions are also accessible from
SortedIndicesArray property.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic int[] SortByCameraDistance(
Vector3 cameraPosition,
bool checkIfAlreadySorted,
out bool isSorted
)
Parameters
- cameraPosition Vector3
- cameraPosition
- checkIfAlreadySorted Boolean
- true (by default) to check if sorting is required
- isSorted Boolean
- set to true if triangle indices were sorted; false when no sort was required
Return Value
Int32true when the order of the triangles was changed
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshTrianglesSorter.SortByCameraDistance(System.Numerics.Vector3,System.Boolean,System.Boolean@)"]
See Also