Package kr.toxicity.library.dynamicuv
Record Class UVPos
java.lang.Object
java.lang.Record
kr.toxicity.library.dynamicuv.UVPos
- Record Components:
x- the x coordinatez- the z coordinate
Represents a 2D position in the UV space.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA functional interface for consuming UV coordinates. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voiditerate(@NotNull UVPos uv, @NotNull UVPos.UVConsumer consumer) Iterates over a rectangular region starting from this position.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
Method Details
-
iterate
Iterates over a rectangular region starting from this position.- Parameters:
uv- the dimensions of the region to iterate overconsumer- the consumer to accept each coordinate in the region
-
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 with '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-