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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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