Hi!
I am having two polar point,
1st is for center and 2nd is for major axis and radius ratio is 0.5
how to draw ellipse in the drawing using this two points and radius ratio.
Please help me on this.
|
Hi!
I am having two polar point,
1st is for center and 2nd is for major axis and radius ratio is 0.5
how to draw ellipse in the drawing using this two points and radius ratio.
Please help me on this.
Hi,
The Ellipse class have an overloaded constructor which takes arguments corresponding to the data you have.
From docs:
public Ellipse(
Point3d center,
Vector3d unitNormal,
Vector3d majorAxis,
double radiusRatio,
double startAngle,
double endAngle
);
So, you can create the ellipse this way:
Code:Ellipse ellipse = new Ellipse(pt1, Vector3d.Zaxis, pt2 - pt1, 0.5, 0.0, Math.PI * 2.0);