georegression.struct.shapes
Class EllipseRotated_F64
- java.lang.Object
-
- georegression.struct.shapes.EllipseRotated_F64
-
- All Implemented Interfaces:
- java.io.Serializable
public class EllipseRotated_F64 extends java.lang.Object implements java.io.SerializableAn 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description doubleasemi major-axisdoublebsemi minor-axisPoint2D_F64centerCenter of the ellipsedoublephicounter clockwise angle of rotation from x-axis to the major axis.
-
Constructor Summary
Constructors Constructor and Description EllipseRotated_F64()EllipseRotated_F64(double x0, double y0, double a, double b, double phi)EllipseRotated_F64(Point2D_F64 center, double a, double b, double phi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetA()doublegetB()Point2D_F64getCenter()doublegetPhi()voidset(double x0, double y0, double a, double b, double phi)voidset(EllipseRotated_F64 ellipse)voidsetA(double a)voidsetB(double b)voidsetCenter(Point2D_F64 center)voidsetPhi(double phi)
-
-
-
Field Detail
-
center
public Point2D_F64 center
Center of the ellipse
-
a
public double a
semi major-axis
-
b
public double b
semi minor-axis
-
phi
public double phi
counter clockwise angle of rotation from x-axis to the major axis. Standard range is from -PI/2 to PI/2
-
-
Constructor Detail
-
EllipseRotated_F64
public EllipseRotated_F64(Point2D_F64 center, double a, double b, double phi)
-
EllipseRotated_F64
public EllipseRotated_F64(double x0, double y0, double a, double b, double phi)
-
EllipseRotated_F64
public EllipseRotated_F64()
-
-
Method Detail
-
getCenter
public Point2D_F64 getCenter()
-
setCenter
public void setCenter(Point2D_F64 center)
-
getA
public double getA()
-
setA
public void setA(double a)
-
getB
public double getB()
-
setB
public void setB(double b)
-
getPhi
public double getPhi()
-
setPhi
public void setPhi(double phi)
-
set
public void set(double x0, double y0, double a, double b, double phi)
-
set
public void set(EllipseRotated_F64 ellipse)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG