static sgCLine*   sgCLine::Create(double pX1, double pY1, double pZ1,double pX2, double pY2, double pZ2)

 

Description:

Creates an object of the LINE SEGMENT class.

 

Arguments:

 

pX1 - X coordinate of the first point,

pY1 - Y coordinate of the first point,

pZ1 - Z coordinate of the first point,

pX2 - X coordinate of the second point,

pY2 - Y coordinate of the second point,

pZ2 - Z coordinate of the second point.

 

Returned value:

Returns the pointer to the created object. If the points are the same, the function returns NULL.

 

 

Following shortening is set:

 

#define  sgCreateLine    sgCLine::Create

 

Example:

 

sgCLine*      ln = sgCreateLine(0.0, 1.0, 6.0, 10.0, 34.0, 1.0);

 

See also:

Objects hierarchy   sgCObject methods   SG_LINE