Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TGCurve
Inherited By:
None.
Purpose:
TGArcThrough3Points is one of several lightweight classes derived from TGCurve whose sole purpose is to disambiguate the constructors for arcs having similar arguments. Applications shouldn't define variables of type TGArcThrough3Points. Instead, use TGCurve and rely on TGArcThrough3Points only for its constructor. For example:
TGCurve myCurve =TGArcThrough3Points( a, b, c );
This creates a curve as a circular arc that passes through the three given points: from a through b to c.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Do not derive from this class.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TGArcThrough3Points (const TGPoint & p0, const TGPoint & p1, const TGPoint & p2)
- TGArcThrough3Points ()
- TGArcThrough3Points (const TGArcThrough3Points &)
Interface Category:
API.
Purpose:
- Constructs a circular arc that passes through the three specified points, in the order given (that is, the direction of the arc is from the first parameter to the third one). If the points are colinear, the curve degenerates into a straight line.
- Default constructor.
- Copy constructor.
Calling Context:
- Call this function directly.
- Called by the stream-in operators. You can also call this function directly.
- Called to copy an object. You can also call this function directly.
Parameters:
- const TGPoint & p0 -The first point that the arc passes through.
- const TGPoint & p1 -The second point that the arc passes through.
- const TGPoint & p2 -The third point that the arc passes through.
- Takes no parameters.
- const TGArcThrough3Points & -The arc to be copied.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TGArcThrough3Points ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.