Record Class SymmetryAnalyzer.SymmetryResult
java.lang.Object
java.lang.Record
org.episteme.social.arts.SymmetryAnalyzer.SymmetryResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
SymmetryAnalyzer
public static record SymmetryAnalyzer.SymmetryResult(SymmetryAnalyzer.SymmetryType type, double confidence, double[] axis, int foldOrder, double[] center)
extends Record
implements Serializable
Result of a symmetry detection analysis.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSymmetryResult(SymmetryAnalyzer.SymmetryType type, double confidence, double[] axis, int foldOrder, double[] center) Creates an instance of aSymmetryResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]axis()Returns the value of theaxisrecord component.double[]center()Returns the value of thecenterrecord component.doubleReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefoldOrderrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SymmetryResult
public SymmetryResult(SymmetryAnalyzer.SymmetryType type, double confidence, double[] axis, int foldOrder, double[] center) Creates an instance of aSymmetryResultrecord class.- Parameters:
type- the value for thetyperecord componentconfidence- the value for theconfidencerecord componentaxis- the value for theaxisrecord componentfoldOrder- the value for thefoldOrderrecord componentcenter- the value for thecenterrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
axis
public double[] axis()Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord component
-
foldOrder
public int foldOrder()Returns the value of thefoldOrderrecord component.- Returns:
- the value of the
foldOrderrecord component
-
center
public double[] center()Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-