Package cz.fidentis.analyst.data.shapes
Record Class Glyph
java.lang.Object
java.lang.Record
cz.fidentis.analyst.data.shapes.Glyph
- Record Components:
location
- positionnormal
- normal vectormaxCurvatureDir
- the maximal principal curvature at the sample pointminCurvatureDir
- the minimal principal curvature at the sample point
- All Implemented Interfaces:
Serializable
public record Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal, javax.vecmath.Vector3d maxCurvatureDir, javax.vecmath.Vector3d minCurvatureDir)
extends Record
implements Serializable
Information about a point selected to be a glyph. Needed for rendering shadow-casting glyphs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGlyph
(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal) Create a glyph with a default orientation if the min/max curvature is not known.Glyph
(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal, javax.vecmath.Vector3d maxCurvatureDir, javax.vecmath.Vector3d minCurvatureDir) Creates an instance of aGlyph
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.javax.vecmath.Point3d
location()
Returns the value of thelocation
record component.javax.vecmath.Vector3d
Returns the value of themaxCurvatureDir
record component.javax.vecmath.Vector3d
Returns the value of theminCurvatureDir
record component.javax.vecmath.Vector3d
normal()
Returns the value of thenormal
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Glyph
public Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal) Create a glyph with a default orientation if the min/max curvature is not known.- Parameters:
location
- positionnormal
- normal vector
-
Glyph
public Glyph(javax.vecmath.Point3d location, javax.vecmath.Vector3d normal, javax.vecmath.Vector3d maxCurvatureDir, javax.vecmath.Vector3d minCurvatureDir) Creates an instance of aGlyph
record class.- Parameters:
location
- the value for thelocation
record componentnormal
- the value for thenormal
record componentmaxCurvatureDir
- the value for themaxCurvatureDir
record componentminCurvatureDir
- the value for theminCurvatureDir
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
location
public javax.vecmath.Point3d location()Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
normal
public javax.vecmath.Vector3d normal()Returns the value of thenormal
record component.- Returns:
- the value of the
normal
record component
-
maxCurvatureDir
public javax.vecmath.Vector3d maxCurvatureDir()Returns the value of themaxCurvatureDir
record component.- Returns:
- the value of the
maxCurvatureDir
record component
-
minCurvatureDir
public javax.vecmath.Vector3d minCurvatureDir()Returns the value of theminCurvatureDir
record component.- Returns:
- the value of the
minCurvatureDir
record component
-