Package georegression.struct.curve
Class EllipseRotated_F64
java.lang.Object
georegression.struct.curve.EllipseRotated_F64
- All Implemented Interfaces:
Serializable
An ellipse described using its center, semi-axes, and orientation.
(x'*cos(phi) + y'*sin(phi))^2/a^2 + (-x'*sin(phi) + y'*cos(phi))^2/b_2 = 1
x' = x-x_0, y' = y-y_0
where (x_0,y_0) is the center, (a,b) are major and minor axises, and phi is it's orientation.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble
semi major-axisdouble
semi minor-axisCenter of the ellipsedouble
counter clockwise angle of rotation from x-axis to the major axis. -
Constructor Summary
ConstructorDescriptionEllipseRotated_F64
(double x0, double y0, double a, double b, double phi) ConstructorEllipseRotated_F64
(EllipseRotated_F64 original) Copy constructorEllipseRotated_F64
(Point2D_F64 center, double a, double b, double phi) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCenter
(Point2D_F64 center) setTo
(double x0, double y0, double a, double b, double phi) setTo
(EllipseRotated_F64 ellipse) toString()
void
zero()
-
Field Details
-
center
Center of the ellipse -
a
public double asemi major-axis -
b
public double bsemi minor-axis -
phi
public double phicounter clockwise angle of rotation from x-axis to the major axis. Standard range is from -PI/2 to PI/2
-
-
Constructor Details
-
EllipseRotated_F64
Constructor- Parameters:
center
- Ellipse centera
- major axisb
- minor axisphi
- orientation in radians
-
EllipseRotated_F64
public EllipseRotated_F64(double x0, double y0, double a, double b, double phi) Constructor- Parameters:
x0
- x coordinate of centery0
- y coordinate of centera
- major axisb
- minor axisphi
- orientation in radians
-
EllipseRotated_F64
Copy constructor- Parameters:
original
- Ellipse which is to be copied
-
EllipseRotated_F64
public EllipseRotated_F64()
-
-
Method Details