public static class Modify
Inheritance System.Object → Modify
Swaps two provided indices if the cross product of the given vectors is negative, or if the first vector is NaN while the second is not.
public static bool SwapIfCrossProductNegative(ref int index_1, ref int index_2, DiGi.ComputeSharp.Planar.Classes.Coordinate2 vector_1, DiGi.ComputeSharp.Planar.Classes.Coordinate2 vector_2);
index_1 System.Int32
index_1
A reference to the first index to be potentially swapped.
index_2 System.Int32
index_2
A reference to the second index to be potentially swapped.
vector_1 Coordinate2
vector_1
The first coordinate vector used for the cross product calculation.
vector_2 Coordinate2
vector_2
The second coordinate vector used for the cross product calculation.
System.Boolean True if the indices were swapped; otherwise, false.
There was an error while loading. Please reload this page.