Geometry functions

The functions in Table 6 are present in the geometry classes (not wrapped into the graphics classes). Implementations for the MGraphic GetGeometricBounds and GetLooseFitBounds functions (described below) call these functions. In addition, these functions can be called in other types of computations where you need to determine whether one geometry is contained within another geometry, or what the position of one geometry is in relation to another.


Geometry hit detection functions
Function Description
GetBounds Returns the bounding TGRect for the calling geometry. This function is the same as the MGraphic::GetGeometricBounds function except that it is called by geometry instances.
Intersects Returns True when the calling geometry intersects the rectangle passed in.
Contains Returns True when the calling area geometry contains the point passed in.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker