const SG_LINE*   sgCLine::GetGeometry()

 

Description:

Returns the pointer to the LINE SEGMENT object geometry.

 

Arguments:

No arguments.

 

Returned value:

Returns the pointer to the LINE SEGMENT object geometry. Read more about the line geometry at SG_LINE

 

Example:

 

sgCLine*    ln = sgCreateLine(10.0, 15.0, 80.0, 0.0, 8.0, 6.0);

assert(ln->GetGeometry()->p1.x==10.0);

assert(ln->GetGeometry()->p1.y==15.0);

assert(ln->GetGeometry()->p2.z==6.0);

 

See also:

Objects hierarchy   sgCObject methods   SG_LINE sgCLine::Create