Package georegression.struct.curve
Class EllipseRotated_F32
java.lang.Object
georegression.struct.curve.EllipseRotated_F32
- All Implemented Interfaces:
Serializable,MapFormattable
@Generated("georegression.struct.curve.EllipseRotated_F64")
public class EllipseRotated_F32
extends Object
implements Serializable, MapFormattable
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
FieldsModifier and TypeFieldDescriptionfloatsemi major-axisfloatsemi minor-axisCenter of the ellipsefloatcounterclockwise angle of rotation from x-axis to the major axis. -
Constructor Summary
ConstructorsConstructorDescriptionEllipseRotated_F32(float x0, float y0, float a, float b, float phi) ConstructorEllipseRotated_F32(EllipseRotated_F32 original) Copy constructorEllipseRotated_F32(Point2D_F32 center, float a, float b, float phi) Constructor -
Method Summary
Modifier and TypeMethodDescriptionformatMap(MapPrintFormat format) voidsetCenter(Point2D_F32 center) setTo(float x0, float y0, float a, float b, float phi) setTo(EllipseRotated_F32 ellipse) toString()voidzero()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ejml.MapFormattable
formatMap
-
Field Details
-
center
Center of the ellipse -
a
public float asemi major-axis -
b
public float bsemi minor-axis -
phi
public float phicounterclockwise angle of rotation from x-axis to the major axis. Standard range is from -PI/2 to PI/2
-
-
Constructor Details
-
EllipseRotated_F32
Constructor- Parameters:
center- Ellipse centera- major axisb- minor axisphi- orientation in radians
-
EllipseRotated_F32
public EllipseRotated_F32(float x0, float y0, float a, float b, float phi) Constructor- Parameters:
x0- x coordinate of centery0- y coordinate of centera- major axisb- minor axisphi- orientation in radians
-
EllipseRotated_F32
Copy constructor- Parameters:
original- Ellipse which is to be copied
-
EllipseRotated_F32
public EllipseRotated_F32()
-
-
Method Details
-
zero
public void zero() -
getCenter
-
setCenter
-
setTo
-
setTo
-
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
toString
-