/// <summary> /// Ensures that the outline is oriented clockwise. /// </summary> public static IImmutablePolygon <V2d> ToClockwise(this IImmutablePolygon <V2d> self) => self.ToPolygon2d().IsCcw() ? new ImmutablePolygon <V2d>(self.Points.Reverse()) : self;
/// <summary> /// Ensures that the outline is oriented counter-clockwise. /// </summary> public static IImmutablePolygon <V2d> ToCounterClockwise(this IImmutablePolygon <V2d> self) { return(self.ToPolygon2d().IsCcw() ? self : new ImmutablePolygon <V2d>(self.Points.Reverse())); }