Record Class IntersectionDescriptor3D
java.lang.Object
java.lang.Record
com.amalgamasimulation.geometry.geometry3d.IntersectionDescriptor3D
-
Constructor Summary
ConstructorsConstructorDescriptionIntersectionDescriptor3D(Point3D point, double firstOperandAbsOffset, double secondOperandAbsOffset) Creates an instance of aIntersectionDescriptor3Drecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefirstOperandAbsOffsetrecord component.final inthashCode()Returns a hash code value for this object.point()Returns the value of thepointrecord component.doubleReturns the value of thesecondOperandAbsOffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntersectionDescriptor3D
public IntersectionDescriptor3D(Point3D point, double firstOperandAbsOffset, double secondOperandAbsOffset) Creates an instance of aIntersectionDescriptor3Drecord class.- Parameters:
point- the value for thepointrecord componentfirstOperandAbsOffset- the value for thefirstOperandAbsOffsetrecord componentsecondOperandAbsOffset- the value for thesecondOperandAbsOffsetrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
point
Returns the value of thepointrecord component.- Returns:
- the value of the
pointrecord component
-
firstOperandAbsOffset
public double firstOperandAbsOffset()Returns the value of thefirstOperandAbsOffsetrecord component.- Returns:
- the value of the
firstOperandAbsOffsetrecord component
-
secondOperandAbsOffset
public double secondOperandAbsOffset()Returns the value of thesecondOperandAbsOffsetrecord component.- Returns:
- the value of the
secondOperandAbsOffsetrecord component
-