Click or drag to resize

Vertices Class

Inheritance Hierarchy
System.Collections.GenericListT
  Internal.nkast.Aether.Physics2D.CommonVertices

Namespace: Internal.nkast.Aether.Physics2D.Common
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class Vertices : List

The Vertices type exposes the following members.

Constructors
 NameDescription
Public methodVerticesInitializes a new instance of the Vertices class
Public methodVertices(IEnumerableVector2)Initializes a new instance of the Vertices class
Public methodVertices(Int32)Initializes a new instance of the Vertices class
Top
Properties
 NameDescription
Public propertyHoles You can add holes to this collection. It will get respected by some of the triangulation algoithms, but otherwise not used.
Top
Methods
 NameDescription
Public methodCheckPolygon Checks if the polygon is valid for use in the engine. Performs a full check, for simplicity, convexity, orientation, minimum angle, and volume. From Eric Jordan's convex decomposition library
Public methodForceCounterClockWise Forces the vertices to be counter clock wise order.
Public methodGetAABB Returns an AABB that fully contains this polygon.
Public methodGetArea Gets the area.
Public methodGetCentroid Gets the centroid.
Public methodGetSignedArea Gets the signed area. If the area is less than 0, it indicates that the polygon is clockwise winded.
Public methodIsConvex Determines whether the polygon is convex. O(n^2) running time. Assumptions: - The polygon is in counter clockwise order - The polygon has no overlapping edges
Public methodIsCounterClockWise Indicates if the vertices are in counter clockwise order. Warning: If the area of the polygon is 0, it is unable to determine the winding.
Public methodIsSimple Checks if the vertices forms an simple polygon by checking for edge crossings.
Public methodNextIndex Gets the next index. Used for iterating all the edges with wrap-around.
Public methodNextVertex Gets the next vertex. Used for iterating all the edges with wrap-around.
Public methodPointInPolygon Winding number test for a point in a polygon.
Public methodPointInPolygonAngle Compute the sum of the angles made between the test point and each pair of points making up the polygon. If this sum is 2pi then the point is an interior point, if 0 then the point is an exterior point. ref: http://ozviz.wasp.uwa.edu.au/~pbourke/geometry/insidepoly/ - Solution 2
Public methodPreviousIndex Gets the previous index. Used for iterating all the edges with wrap-around.
Public methodPreviousVertex Gets the previous vertex. Used for iterating all the edges with wrap-around.
Public methodProjectToAxis Projects to axis.
Public methodRotate Rotate the vertices with the defined value in radians. Warning: Using this method on an active set of vertices of a Body, will cause problems with collisions. Use Body.Rotation instead.
Public methodScale(Vector2) Scales the vertices with the specified vector.
Public methodScale(Vector2) Scales the vertices with the specified vector.
Public methodToString 
Public methodTranslate(Vector2) Translates the vertices with the specified vector.
Public methodTranslate(Vector2) Translates the vertices with the specified vector.
Top
See Also