Struct DuplicateSamplePoint
- Namespace
- FluffyUnderware.Curvy.Generator
Data about duplicated points, meaning a couple of points sharing the same position. Such duplicated points are used to store different normals or different U coordinates at the same position
public readonly struct DuplicateSamplePoint
Constructors
DuplicateSamplePoint(int, int, bool)
public DuplicateSamplePoint(int startIndex, int endIndex, bool isHardEdge)
Parameters
Properties
EndIndex
The index of the second point
public int EndIndex { get; }
Property Value
IsHardEdge
When true, both points don't share the same normal
public bool IsHardEdge { get; }
Property Value
StartIndex
The index of the first point
public int StartIndex { get; }
Property Value
Methods
Equals(DuplicateSamplePoint)
public bool Equals(DuplicateSamplePoint other)
Parameters
otherDuplicateSamplePoint
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DuplicateSamplePoint, DuplicateSamplePoint)
public static bool operator ==(DuplicateSamplePoint left, DuplicateSamplePoint right)
Parameters
leftDuplicateSamplePointrightDuplicateSamplePoint
Returns
operator !=(DuplicateSamplePoint, DuplicateSamplePoint)
public static bool operator !=(DuplicateSamplePoint left, DuplicateSamplePoint right)
Parameters
leftDuplicateSamplePointrightDuplicateSamplePoint