This interface represents a single point(LPoint object). More...
Public Member Functions | |
double | Collinear (ILPoint *point1, ILPoint *point2) |
double | Distance (ILPoint *point) |
double | DistanceWithRefLine (ILPoint *point, ILLine *refLine) |
double | DotProduct (ILPoint *point) |
void | Draw (LPVPointShape shape, HDC hdc, double zoomX, double zoomY, double panX, double panY) |
void | FromSortable (ILSortable *sortable, LPVPositionMode posMode) |
ILPoint * | MidPoint (ILPoint *point) |
ILPoint * | Scale (double factorX, double factorY) |
void | Set (double x, double y) |
ILPoint * | Transform (ILTransform *tf) |
ILPoint * | Translate (double offsetX, double offsetY) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
double | X [get, set] |
The x-coordinate of the point. | |
double | Y [get, set] |
The y-coordinate of the point. | |
This interface represents a single point(LPoint object).
Evaluate whether this and the two given points are collinear
[in] | point1 | The first input point |
[in] | point2 | The second input point |
Return | the evaluation result, it's a value in (0, 1). For points on a perfect line, it's 1. |
double Distance | ( | ILPoint * | point | ) |
Calculate the distance between this and the input point
[in] | point | The input point |
Return | the distance |
Calculate the distance between this and the input point in direction of the reference line
[in] | point | The input point |
[in] | refLine | The input reference line |
Return | the distance |
double DotProduct | ( | ILPoint * | point | ) |
Calculate the dot-product of this and the input point
[in] | point | The input point |
Return | the dot-product result |
void Draw | ( | LPVPointShape | shape, |
HDC | hdc, | ||
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw the point on HDC.
[in] | shape | The shape of the point in drawing |
void FromSortable | ( | ILSortable * | sortable, |
LPVPositionMode | posMode | ||
) |
Set placement of the point from the input sortable object.
[in] | sortable | The input sortable object |
[in] | posMode | Specify which point is used as the object's position, usually the center. |
Get the middle point of this and the input point
[in] | point | The input point |
Return | the middle point |
ILPoint* Scale | ( | double | factorX, |
double | factorY | ||
) |
Scale the point by the given factor and return a new point
[in] | factorX | The scale factor of x-coordinate |
[in] | factorY | The scale factor of y-coordinate |
Return | the new point |
void Set | ( | double | x, |
double | y | ||
) |
Set placement of the point
[in] | x | The x-coordinate of the point |
[in] | y | The y-coordinate of the point |
ILPoint* Transform | ( | ILTransform * | tf | ) |
Transform the point via the given transformation and return a new point
[in] | tf | The transformation. |
Return | the new point |
ILPoint* Translate | ( | double | offsetX, |
double | offsetY | ||
) |
Translate the point by the given offset and return a new point
[in] | offsetX | The x-coordinate of the offset |
[in] | offsetY | The y-coordinate of the offset |
Return | the new point |