vtdata library
Public Member Functions
FLine2 Class Reference
Inheritance diagram for FLine2:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FLine2 (int size)
 FLine2 (const FLine2 &ref)
FLine2operator= (const FLine2 &v)
FLine2operator= (const DLine2 &v)
float Area () const
float SegmentLength (unsigned int i) const
void NearestPoint (const FPoint2 &Point, int &iIndex, float &dist) const
void NearestPoint (const FPoint2 &Point, int &iIndex) const
bool NearestSegment (const FPoint2 &Point, int &iIndex, float &dist, FPoint2 &Intersection) const
void InsertPointAfter (int iInsertAfter, const FPoint2 &Point)
void ReverseOrder ()
bool IsConvex () const

Detailed Description

A series of 2D points. This is useful for representing either a series of points, line segments or a closed polygon. Single-precision.


Member Function Documentation

void FLine2::NearestPoint ( const FPoint2 Point,
int &  iIndex,
float &  fClosest 
) const

Return the nearest point (of the points which make up the line). This is not the same as the closest place on the line, which may lie between the defining points.

Parameters:
PointThe input point.
iIndexIndex of the first point of the nearest line segment.
fClosestDistance from the FLine2 to the input point.
void FLine2::NearestPoint ( const FPoint2 Point,
int &  iIndex 
) const

A slightly faster version of NearestPoint which doesn't provide the distance to the closest point.

 All Classes Files Functions Variables Enumerations Enumerator