DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


IKO_Geom2d_Circle Interface


Describes a circle in the plane (2D space).
A circle is defined by its radius and, as with any conic
curve, is positioned in the plane with a coordinate
system (gp_Ax22d object) where the origin is the
center of the circle.
The coordinate system is the local coordinate
system of the circle.
The orientation (direct or indirect) of the local
coordinate system gives an explicit orientation to the
circle, determining the direction in which the
parameter increases along the circle.
The Geom2d_Circle circle is parameterized by an angle:
P(U) = O + R*Cos(U)*XDir + R*Sin(U)*YDir
where:
- P is the point of parameter U,
- O, XDir and YDir are respectively the origin, "X
Direction" and "Y Direction" of its local coordinate system,
- R is the radius of the circle.
The "X Axis" of the local coordinate system therefore
defines the origin of the parameter of the circle. The
parameter is the angle with this "X Direction".
A circle is a closed and periodic curve. The period is
2.*Pi and the parameter range is [ 0,2.*Pi [.
See Also
GCE2d_MakeCircle which provides functions for
more complex circle constructions
gp_Ax22d and gp_Circ2d for an equivalent, non-parameterized data structure.

Query IKO_Standard_Object from this interface to create a copy or obtain the type name

Methods

Init
Init1
Init2
SetCirc2d
SetRadius
Circ2d
Radius
ReversedParameter
Eccentricity
FirstParameter
LastParameter
IsClosed
IsPeriodic
D0
D1
D2
D3
DN
Transform
Copy

HRESULT Init(IKO_gp_Circ2d* C)


HRESULT Init1(IKO_gp_Ax2d* A, double Radius, VARIANT_BOOL Sense)


HRESULT Init2(IKO_gp_Ax22d* A, double Radius)


HRESULT SetCirc2d(IKO_gp_Circ2d* C)


HRESULT SetRadius(double R)


HRESULT Circ2d(IKO_gp_Circ2d** ret)


HRESULT Radius(double* ret)


HRESULT ReversedParameter(double U, double* ret)


HRESULT Eccentricity(double* ret)


HRESULT FirstParameter(double* ret)


HRESULT LastParameter(double* ret)


HRESULT IsClosed(VARIANT_BOOL* ret)


HRESULT IsPeriodic(VARIANT_BOOL* ret)


HRESULT D0(double U, KC2D* P)


HRESULT D1(double U, KC2D* P, KC2D* V1)


HRESULT D2(double U, KC2D* P, KC2D* V1, KC2D* V2)


HRESULT D3(double U, KC2D* P, KC2D* V1, KC2D* V2, KC2D* V3)


HRESULT DN(double U, int N, KC2D* ret)


HRESULT Transform(IKO_gp_Trsf2d* T)


HRESULT Copy(IKO_Geom2d_Geometry** ret)