Class CovarianceToEllipse_F64

java.lang.Object
georegression.fitting.curves.CovarianceToEllipse_F64

public class CovarianceToEllipse_F64 extends Object
Computes a containment ellipse given a covariance
  • Constructor Details

    • CovarianceToEllipse_F64

      public CovarianceToEllipse_F64()
  • Method Details

    • setNumStdev

      public void setNumStdev(double numStdev)
    • setCovariance

      public boolean setCovariance(double a11, double a12, double a22)
      Specifies the covariance matrix. Q = [a11 a12; a12 a22]
      Parameters:
      a11 - element in covariance matrix.
      a12 - element in covariance matrix.
      a22 - element in covariance matrix.
      Returns:
      true if it was successful or false if something went wrong
    • getMajorVector

      public Vector2D_F64 getMajorVector()
      Returns:
      Vector which defines the major axis
    • getMinorVector

      public Vector2D_F64 getMinorVector()
      Returns:
      Vector which defines the minor axis
    • getAngle

      public double getAngle()
      Returns:
      Angle between the major axis and the x-axis
    • getMajorAxis

      public double getMajorAxis()
      Returns:
      Length of the major axis
    • getMinorAxis

      public double getMinorAxis()
      Returns:
      Length of the minor axis