Record Class UnitBezier
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.camera.UnitBezier
Cubic unit-bezier easing curve.
-
Constructor Summary
ConstructorsConstructorDescriptionUnitBezier(double x1, double y1, double x2, double y2) Creates an instance of aUnitBezierrecord 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.doublex1()Returns the value of thex1record component.doublex2()Returns the value of thex2record component.doubley1()Returns the value of they1record component.doubley2()Returns the value of they2record component.
-
Constructor Details
-
UnitBezier
public UnitBezier(double x1, double y1, double x2, double y2) Creates an instance of aUnitBezierrecord class.- Parameters:
x1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record component
-
-
Method Details
-
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. -
x1
public double x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public double y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
public double x2()Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
public double y2()Returns the value of they2record component.- Returns:
- the value of the
y2record component
-