Click or drag to resize

Vertices Class

Inheritance Hierarchy
SystemObject
  System.Collections.GenericListVector2
    Internal.tainicom.Aether.Physics2D.CommonVertices

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class Vertices : List<Vector2>

The Vertices type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
Gets or sets the total number of elements the internal data structure can hold without resizing.
(Inherited from ListVector2.)
Public propertyCount (Inherited from ListVector2.)
Public propertyHoles
You can add holes to this collection. It will get respected by some of the triangulation algoithms, but otherwise not used.
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from ListVector2.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from ListVector2.)
Public methodAddRange (Inherited from ListVector2.)
Public methodAsReadOnly (Inherited from ListVector2.)
Public methodBinarySearch(T)
Searches the entire sorted ListT for an element using the default comparer and returns the zero-based index of the element.
(Inherited from ListVector2.)
Public methodBinarySearch(T, IComparerT)
Searches the entire sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListVector2.)
Public methodBinarySearch(Int32, Int32, T, IComparerT)
Searches a range of elements in the sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListVector2.)
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 methodClear (Inherited from ListVector2.)
Public methodContains (Inherited from ListVector2.)
Public methodConvertAllTOutput (Inherited from ListVector2.)
Public methodCopyTo(T) (Inherited from ListVector2.)
Public methodCopyTo(T, Int32) (Inherited from ListVector2.)
Public methodCopyTo(Int32, T, Int32, Int32)
Copies a range of elements from the ListT to a compatible one-dimensional array, starting at the specified index of the target array.
(Inherited from ListVector2.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists (Inherited from ListVector2.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire ListT.
(Inherited from ListVector2.)
Public methodFindAll
Retrieves all the elements that match the conditions defined by the specified predicate.
(Inherited from ListVector2.)
Public methodFindIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire ListT.
(Inherited from ListVector2.)
Public methodFindIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListVector2.)
Public methodFindIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListVector2.)
Public methodFindLast
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire ListT.
(Inherited from ListVector2.)
Public methodFindLastIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire ListT.
(Inherited from ListVector2.)
Public methodFindLastIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListVector2.)
Public methodFindLastIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListVector2.)
Public methodForceCounterClockWise
Forces the vertices to be counter clock wise order.
Public methodForEach (Inherited from ListVector2.)
Public methodGetAABB
Returns an AABB that fully contains this polygon.
Public methodGetArea
Gets the area.
Public methodGetCentroid
Gets the centroid.
Public methodGetEnumerator (Inherited from ListVector2.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRange (Inherited from ListVector2.)
Public methodGetSignedArea
Gets the signed area. If the area is less than 0, it indicates that the polygon is clockwise winded.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(T) (Inherited from ListVector2.)
Public methodIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListVector2.)
Public methodIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListVector2.)
Public methodInsert (Inherited from ListVector2.)
Public methodInsertRange (Inherited from ListVector2.)
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 methodLastIndexOf(T) (Inherited from ListVector2.)
Public methodLastIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListVector2.)
Public methodLastIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListVector2.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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 methodRemove (Inherited from ListVector2.)
Public methodRemoveAll
Removes all the elements that match the conditions defined by the specified predicate.
(Inherited from ListVector2.)
Public methodRemoveAt (Inherited from ListVector2.)
Public methodRemoveRange (Inherited from ListVector2.)
Public methodReverse (Inherited from ListVector2.)
Public methodReverse(Int32, Int32)
Reverses the order of the elements in the specified range.
(Inherited from ListVector2.)
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 methodSort (Inherited from ListVector2.)
Public methodSort(IComparerT) (Inherited from ListVector2.)
Public methodSort(ComparisonT) (Inherited from ListVector2.)
Public methodSort(Int32, Int32, IComparerT) (Inherited from ListVector2.)
Public methodToArray (Inherited from ListVector2.)
Public methodToString (Overrides ObjectToString.)
Public methodTranslate(Vector2)
Translates the vertices with the specified vector.
Public methodTranslate(Vector2)
Translates the vertices with the specified vector.
Public methodTrimExcess (Inherited from ListVector2.)
Public methodTrueForAll (Inherited from ListVector2.)
Top
See Also