java.lang.Object
java.lang.Record
org.freedesktop.cairo.PathElement.CurveTo
- Record Components:
x1
- the X coordinate of the first control pointy1
- the Y coordinate of the first control pointx2
- the X coordinate of the second control pointy2
- the Y coordinate of the second control pointx3
- the X coordinate of the end of the curvey3
- the Y coordinate of the end of the curve
- All Implemented Interfaces:
PathElement
- Enclosing interface:
PathElement
public static record PathElement.CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)
extends Record
implements PathElement
A
PathDataType.CURVE_TO
path element-
Nested Class Summary
Nested classes/interfaces inherited from interface org.freedesktop.cairo.PathElement
PathElement.ClosePath, PathElement.CurveTo, PathElement.LineTo, PathElement.MoveTo
-
Constructor Summary
ConstructorDescriptionCurveTo
(double x1, double y1, double x2, double y2, double x3, double y3) Creates an instance of aCurveTo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.double
x1()
Returns the value of thex1
record component.double
x2()
Returns the value of thex2
record component.double
x3()
Returns the value of thex3
record component.double
y1()
Returns the value of they1
record component.double
y2()
Returns the value of they2
record component.double
y3()
Returns the value of they3
record component.
-
Constructor Details
-
CurveTo
public CurveTo(double x1, double y1, double x2, double y2, double x3, double y3) Creates an instance of aCurveTo
record class.
-
-
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 '=='. -
x1
-
y1
-
x2
-
y2
-
x3
-
y3
-