IKO_gp_Circ Interface
Properties of a circle. To create this type of a circle use a call similar to
iDIObjGenerator.Create3("KO_gp_Circ") where iDIObjGenerator has
IDIObjGenerator type
- SetLocation
- GetLocation
- SetAxisDirection
- GetAxisDirection
- SetRadius
- GetRadius
- Distance
- Contains
- Mirror
HRESULT Init(VARIANT_BOOL SetLocation(double x, double y, double z)
Parameters
x,y,z -[in] Coordinates of center
- Remarks:
Sets location of the circle
HRESULT GetLocation(double* x, double* y, double* z)
Parameters
x,y,z -[out] Coordinates of center
- Remarks:
Returns location of the circle
HRESULT SetAxisDirection(double vx, double vy, double vz)
Parameters
vx,vy,vz -[in] Coordinates of direction vector of the
axis
- Remarks:
Modifies direction of axis
HRESULT GetAxisDirection(double* vx, double* vy, double* vz)
Parameters
vx,vy,vz -[out] Direction vector of the axis
- Remarks:
Retuns direction of axis
HRESULT SetRadius(double Radius)
Parameters
Radius -[in] Radius of the circle
- Remarks:
Modifies radius of the circle
HRESULT GetRadius(double* Radius)
Parameters
Radius -[out,retval] Radius of the circle
- Remarks:
Returns radius of the circle
HRESULT Distance(DIPoint* pt, double* dist)
Parameters
pt -[in] Point to calculate distance to
dist -[out,retval] The calculated distance
- Remarks:
Calculates circle to point distance
HRESULT Contains(DIPoint* pt, double tolerance, VARIANT_BOOL* result)
Parameters
pt -[in] Point to calculate distance to
tolerance -[in] Telerance of the calculation
result -[out,retval] True if the point lies on the circle
- Remarks:
Calculates location of a point relative to this circle
HRESULT Mirror(DIPoint* pt)
Parameters
pt -[in,out] Point to mirror
- Remarks:
Changes pt to its mirror image relative to this circle
|