Home Page > KernelCAD Components > Interfaces > Lines And Curves > IEllipse_KC
IIEllipse_KC Interface
IEllipse_KC Interface
- GetA
- SetA
- GetB
- SetB
- GetNormalAtAngle
- GetNormalAtAngle
Access to properties of an
ellipse
HRESULT GetA(double* a)
Parameters
a -[out, retval] The first radius of the ellipse
HRESULT SetA(double a)
- Remarks
Modifies the first radius
HRESULT GetB(double* b)
Parameters
b -[out, retval] The second radius of the ellipse
HRESULT SetB(double b)
- Remarks:
Modifies the second radius
HRESULT GetPointAtAngle(double angle, double* x, double* y)
Parameters
angle -[out] Polar angle in radiants (angle with direction of x axis)
x, y -[out] The returned point on the ellipse
- Remarks:
Returns point on the elipse in direction of the polar angle
HRESULT GetNormalAtAngle(double angle, double* nx, double* ny)
Parameters
angle -[out] Polar angle in radiants (angle with direction of x axis)
x, y -[out] The returned point on the ellipse
- Remarks:
Returns normal at point on the elipse in direction of the polar angle.
Coordinates of the point can beobtained with the GetPointAtAngle() above
|