Package georegression.struct.curve
Class ConicGeneral_F32
java.lang.Object
georegression.struct.curve.ConicGeneral_F32
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EllipseQuadratic_F32
@Generated("georegression.struct.curve.ConicGeneral_F64")
public class ConicGeneral_F32
extends Object
implements Serializable
A*x2 + B*x*y + C*y2 + D*x + E*y + F=0
All coefficients are real numbers and A,B,C are all not zero. The discriminant is defined as B2 - 4*A*C.
Ellipse: B2 - 4*A*C < 0
Parabola: B2 - 4*A*C = 0
Hyperbola: B2 - 4*A*C > 0
NOTE: these parameters are unique only up to a scale factor.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConicGeneral_F32(float a, float b, float c, float d, float e, float f) ConicGeneral_F32(ConicGeneral_F32 original) -
Method Summary
Modifier and TypeMethodDescriptioncopy()floatevaluate(float x, float y) booleanReturns true if any of its parameters have an uncountable numberbooleanisEllipse(float tol) booleanisHyperbola(float tol) booleanisParabola(float tol) setTo(float a, float b, float c, float d, float e, float f) setTo(ConicGeneral_F32 original) toString()voidzero()
-
Field Details
-
A
public float ACoefficients -
B
public float BCoefficients -
C
public float CCoefficients -
D
public float DCoefficients -
E
public float ECoefficients -
F
public float FCoefficients
-
-
Constructor Details
-
ConicGeneral_F32
public ConicGeneral_F32(float a, float b, float c, float d, float e, float f) -
ConicGeneral_F32
-
ConicGeneral_F32
public ConicGeneral_F32()
-
-
Method Details
-
evaluate
public float evaluate(float x, float y) -
hasUncountable
public boolean hasUncountable()Returns true if any of its parameters have an uncountable number -
isEllipse
public boolean isEllipse(float tol) -
isParabola
public boolean isParabola(float tol) -
isHyperbola
public boolean isHyperbola(float tol) -
setTo
-
setTo
-
zero
public void zero() -
copy
-
toString
-