Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsRemoveDuplicateFollowingPositions Method

RemoveDuplicateFollowingPositions checks an array of Vector3 and returns an array with removed duplicate positions that follow each other. In case there are no duplicates, the same positions instance is returned as it was passed to this method (no new array is created).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Vector3[]? RemoveDuplicateFollowingPositions(
	Vector3[]? positions,
	float epsilon = 1E-08f
)

Parameters

positions  Vector3
array of Vector3
epsilon  Single  (Optional)
epsilon (default value is 1.0E-8f)

Return Value

Vector3
array of Vector3 without duplicate following positions
See Also