Class FitResult
Object
FitResult
Represents the result of fitting an ellipsoid to a set of points.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFitResultToMark(Ellipsoid mark, Dimensions sceneDim, double shell) Applies the fit result to anEllipsoidmark.voidapplyRadiiSubtractScale(double subtract, double scale) Applies a subtraction and scaling to the radii of the ellipsoid.protected booleanbooleanThe center point of the fitted ellipsoid.doubleThe radius of the ellipsoid along the X-axis.doubleThe radius of the ellipsoid along the Y-axis.doubleThe radius of the ellipsoid along the Z-axis.cern.colt.matrix.DoubleMatrix2DThe rotation matrix, which must be considered immutable to be used here.inthashCode()voidimposeMinimumRadius(double minRadius) Imposes a minimum radius on all axes of the ellipsoid.voidsetCenterPoint(Point3d centerPoint) The center point of the fitted ellipsoid.voidsetRadiusX(double radiusX) The radius of the ellipsoid along the X-axis.voidsetRadiusY(double radiusY) The radius of the ellipsoid along the Y-axis.voidsetRadiusZ(double radiusZ) The radius of the ellipsoid along the Z-axis.voidsetRotMatrix(cern.colt.matrix.DoubleMatrix2D rotMatrix) The rotation matrix, which must be considered immutable to be used here.toString()
-
Constructor Details
-
FitResult
public FitResult()
-
-
Method Details
-
applyFitResultToMark
public void applyFitResultToMark(Ellipsoid mark, Dimensions sceneDim, double shell) throws PointsFitterException Applies the fit result to anEllipsoidmark.- Parameters:
mark- theEllipsoidto updatesceneDim- the dimensions of the sceneshell- the shell thickness- Throws:
PointsFitterException- if the ellipsoid is outside the scene
-
applyRadiiSubtractScale
public void applyRadiiSubtractScale(double subtract, double scale) Applies a subtraction and scaling to the radii of the ellipsoid.- Parameters:
subtract- the value to subtract from each radiusscale- the scale factor to apply after subtraction
-
imposeMinimumRadius
public void imposeMinimumRadius(double minRadius) Imposes a minimum radius on all axes of the ellipsoid.- Parameters:
minRadius- the minimum allowed radius
-
getCenterPoint
The center point of the fitted ellipsoid. -
getRadiusX
public double getRadiusX()The radius of the ellipsoid along the X-axis. -
getRadiusY
public double getRadiusY()The radius of the ellipsoid along the Y-axis. -
getRadiusZ
public double getRadiusZ()The radius of the ellipsoid along the Z-axis. -
getRotMatrix
public cern.colt.matrix.DoubleMatrix2D getRotMatrix()The rotation matrix, which must be considered immutable to be used here. -
setCenterPoint
The center point of the fitted ellipsoid. -
setRadiusX
public void setRadiusX(double radiusX) The radius of the ellipsoid along the X-axis. -
setRadiusY
public void setRadiusY(double radiusY) The radius of the ellipsoid along the Y-axis. -
setRadiusZ
public void setRadiusZ(double radiusZ) The radius of the ellipsoid along the Z-axis. -
setRotMatrix
public void setRotMatrix(cern.colt.matrix.DoubleMatrix2D rotMatrix) The rotation matrix, which must be considered immutable to be used here. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-