Record Class TextureSection.TextureSectionData
java.lang.Object
java.lang.Record
net.lugo.overlaylib.util.TextureSection.TextureSectionData
- Enclosing class:
TextureSection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureSectionData(int xSections, int ySections) Creates an instance of aTextureSectionDatarecord class. -
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.final StringtoString()Returns a string representation of this record class.floatuSize()floatvSize()intReturns the value of thexSectionsrecord component.intReturns the value of theySectionsrecord component.
-
Field Details
-
SINGULAR
-
-
Constructor Details
-
TextureSectionData
public TextureSectionData(int xSections, int ySections) Creates an instance of aTextureSectionDatarecord class.- Parameters:
xSections- the value for thexSectionsrecord componentySections- the value for theySectionsrecord component
-
-
Method Details
-
uSize
public float uSize() -
vSize
public float vSize() -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
xSections
public int xSections()Returns the value of thexSectionsrecord component.- Returns:
- the value of the
xSectionsrecord component
-
ySections
public int ySections()Returns the value of theySectionsrecord component.- Returns:
- the value of the
ySectionsrecord component
-