Current supported convex shapes:
Polygonan arbitrary convex polygon
Slicea piece of a circle
Segmentspecial case shape; take care when using this class
HalfEllipseare not compatible with all collision detection algorithms.
All shapes can be constructed using their respective constructors or via the
Shape constructors do not duplicate the input information whereas the
Geometry class methods do. The
Geometry class methods can
also place the newly created shape at the origin for easier manipulation.
Shape classes allow for some manipulation, but it's not recommend to do so
after creation, except for the rotate and translate methods.
Vectors, points and vertices are all represented by the
- William Bittle
Interface Summary Interface Description Convex RotatableInterface representing an object that can be rotated. ShapeRepresents a geometric
ShiftableRepresents an object that can be shifted in the x and y plane. Transformable TranslatableRepresents an object that can be translated or moved in the x-y plane. WoundRepresents a shape that is defined by vertices with line segment connections with counter-clockwise winding.
Class Summary Class Description AABBImplementation of an Axis-Align Bounding Box. AbstractShapeBase implementation of the
AdaptiveDecimalThis is an implementation of multi-precision decimals based on the original work by Jonathan Richard Shewchuk, "Routines for Arbitrary Precision Floating-point Arithmetic and Fast Robust Geometric Predicates". Capsule Circle EdgeFeature Ellipse FeatureRepresents an indexed feature of a
GeometryContains static methods to perform standard geometric operations. HalfEllipse IntervalRepresents a one dimensional numeric
LinkThis class is a specialization of the
Segmentclass that provides smooth sliding across a chain of line segments.
Massdata for an object about a given point.
Matrix22Represents a 2x2 Matrix. Matrix33Represents a 3x3 Matrix. PointFeature Polygon RayImplementation of a ray. Rectangle RobustGeometryThis class provides geometric routines that have guarantees about some properties of their floating point results and operations. RotationThis class represents a rotation (in 2D space). Segment Slice TransformRepresents a transformation matrix. Triangle Vector2This class represents a vector or point in 2D space. Vector3This class represents a vector or point in 3D space. WoundIterator
Enum Summary Enum Description MassTypeEnumeration for special