Class: TGArcThrough3Points

Declaration: Curve.h

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.

Member Function: TGArcThrough3Points::TGArcThrough3Points

  1. TGArcThrough3Points (const TGPoint & p0, const TGPoint & p1, const TGPoint & p2)
  2. TGArcThrough3Points ()
  3. TGArcThrough3Points (const TGArcThrough3Points &)

Interface Category:

API.

Purpose:

  1. 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.
  2. Default constructor.
  3. Copy constructor.

Calling Context:

  1. Call this function directly.
  2. Called by the stream-in operators. You can also call this function directly.
  3. Called to copy an object. You can also call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGArcThrough3Points::~TGArcThrough3Points

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.