Record Class MeshVicinity
java.lang.Object
java.lang.Record
cz.fidentis.analyst.data.landmarks.MeshVicinity
- Record Components:
distance
- Distance to the related meshnearestPoint
- The closet point on the related mesh
- All Implemented Interfaces:
Serializable
public record MeshVicinity(double distance, javax.vecmath.Point3d nearestPoint)
extends Record
implements Serializable
Relationship between the landmark and the close vicinity of its mesh.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMeshVicinity
(double distance, javax.vecmath.Point3d nearestPoint) Creates an instance of aMeshVicinity
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
distance()
Returns the value of thedistance
record component.final boolean
Indicates whether some other object is "equal to" this one.Gets the position type same as getPositionType(double distanceThreshold) with distance threshold set to 0getPositionType
(double distanceThreshold) Gets the position type based on distance threshold.final int
hashCode()
Returns a hash code value for this object.javax.vecmath.Point3d
Returns the value of thenearestPoint
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MeshVicinity
public MeshVicinity(double distance, javax.vecmath.Point3d nearestPoint) Creates an instance of aMeshVicinity
record class.- Parameters:
distance
- the value for thedistance
record componentnearestPoint
- the value for thenearestPoint
record component
-
-
Method Details
-
getPositionType
Gets the position type based on distance threshold.- Parameters:
distanceThreshold
-- Returns:
- position type
-
getPositionType
Gets the position type same as getPositionType(double distanceThreshold) with distance threshold set to 0- Returns:
- position type
-
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 '=='. -
distance
public double distance()Returns the value of thedistance
record component.- Returns:
- the value of the
distance
record component
-
nearestPoint
public javax.vecmath.Point3d nearestPoint()Returns the value of thenearestPoint
record component.- Returns:
- the value of the
nearestPoint
record component
-