class Geo::ConvexHullBuilder
Builds ConvexHull objects.
Functions
Name | Description |
---|---|
AddPoint(double, double) | Push a point. |
BuildConvexHull() | Build a convex hull. |
BuildConvexHull(ConvexHull *, Geo::s32 *) | Build a convex hull. |
Clear() | Clear the points, ready for a new hull. |
ConvexHullBuilder(Geo::s32) | Creates a ConvexHullBuilder with the given maximum number of points. |
GetNumPoints() | Return the number of points. |
GetPoint(Geo::s32, float &, float &) | Return a point. |
GetPoint(Geo::s32, double &, double &) | Return a point. |
Anchor | ||||
---|---|---|---|---|
|
void Geo::ConvexHullBuilder::AddPoint
...
public: void AddPoint
(
double u,
double v
)
...
Push a point.
Anchor | ||||
---|---|---|---|---|
|
ConvexHull* Geo::ConvexHullBuilder::BuildConvexHull
...
public: ConvexHull * BuildConvexHull()
...
Build a convex hull.
Not const because it does internal sorting.
Anchor | ||||
---|---|---|---|---|
|
bool Geo::ConvexHullBuilder::BuildConvexHull
...
public: bool BuildConvexHull
(
ConvexHull * hull,
Geo::s32 * numPoints
)
...
Build a convex hull.
Not const because it does internal sorting. This does the operation in place and returns the actual number of points on the hull. Use this if you are creating many hulls and don't want to allocate new hulls each time.
Anchor | ||||
---|---|---|---|---|
|
void Geo::ConvexHullBuilder::Clear
...
public: void Clear()
...
Clear the points, ready for a new hull.
Anchor | ||||
---|---|---|---|---|
|
Geo::ConvexHullBuilder::ConvexHullBuilder
...
public: ConvexHullBuilder
(
Geo::s32 maxPoints
)
...
Creates a ConvexHullBuilder with the given maximum number of points.
Anchor | ||||
---|---|---|---|---|
|
Geo::s32 Geo::ConvexHullBuilder::GetNumPoints
...
public: Geo::s32 GetNumPoints() const
...
Return the number of points.
Anchor | ||||
---|---|---|---|---|
|
void Geo::ConvexHullBuilder::GetPoint
...
public: void GetPoint
(
Geo::s32 i,
float & u,
float & v
) const
...
Return a point.
Anchor | ||||
---|---|---|---|---|
|
void Geo::ConvexHullBuilder::GetPoint
...
public: void GetPoint
(
Geo::s32 i,
double & u,
double & v
) const
...
Return a point.