Record Class SyShapeRectangle<T extends SySpaceType>
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.rendering.SyShapeRectangle<T>
- Type Parameters:
T- The coordinate space type- Record Components:
area- The area
- All Implemented Interfaces:
SyShapeType<T>
public record SyShapeRectangle<T extends SySpaceType>(com.io7m.jregions.core.parameterized.areas.PAreaI<T extends SySpaceType> area)
extends Record
implements SyShapeType<T>
A rectangle.
-
Constructor Summary
ConstructorsConstructorDescriptionSyShapeRectangle(com.io7m.jregions.core.parameterized.areas.PAreaI<T> area) A rectangle. -
Method Summary
Modifier and TypeMethodDescriptioncom.io7m.jregions.core.parameterized.areas.PAreaI<T> area()Returns the value of thearearecord component.com.io7m.jregions.core.parameterized.areas.PAreaI<T> final 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.
-
Constructor Details
-
SyShapeRectangle
A rectangle.- Parameters:
area- The area
-
-
Method Details
-
boundingArea
- Specified by:
boundingAreain interfaceSyShapeType<T extends SySpaceType>- Returns:
- The size of the shape
-
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 withObjects::equals(Object,Object). -
area
-