Record Class ImplicitTileCoordinate
java.lang.Object
java.lang.Record
com.gaia3d.process.tileprocess.tile.tileset.implicit.ImplicitTileCoordinate
-
Constructor Summary
ConstructorsConstructorDescriptionImplicitTileCoordinate(int level, int x, int y, int z) Creates an instance of aImplicitTileCoordinaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionancestor(int ancestorLevel) child(char childCode) child(int childIndex, SubdivisionScheme subdivisionScheme) booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlevel()Returns the value of thelevelrecord component.intlocalMortonIndex(int localLevel, ImplicitTileCoordinate subtreeRoot, SubdivisionScheme subdivisionScheme) static intoctreeChildIndex(char childCode) static ImplicitTileCoordinateroot()toContentPath(String rootCode) toContentPath(String rootCode, SubdivisionScheme subdivisionScheme) toQuadtreeContentPath(String rootCode) final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
ImplicitTileCoordinate
public ImplicitTileCoordinate(int level, int x, int y, int z) Creates an instance of aImplicitTileCoordinaterecord class.- Parameters:
level- the value for thelevelrecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord component
-
-
Method Details
-
root
-
octreeChildIndex
public static int octreeChildIndex(char childCode) -
child
-
child
-
ancestor
-
toContentPath
-
toContentPath
-
toQuadtreeContentPath
-
localMortonIndex
public int localMortonIndex(int localLevel, ImplicitTileCoordinate subtreeRoot, SubdivisionScheme subdivisionScheme) -
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 with '=='. -
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. -
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-