public final class Curve extends Shape
Represents bezier curve.
Constructor and Description |
---|
Curve(float[] positionArr)
Initializes a new instance of the
Curve class. |
Modifier and Type | Method and Description |
---|---|
float |
getPosition1X()
Gets or sets a float value that indicates the x-coordinate of the control point 1 of the curve.
|
float |
getPosition1Y()
Gets or sets a float value that indicates the y-coordinate of the control point 1 of the curve.
|
float |
getPosition2X()
Gets or sets a float value that indicates the x-coordinate of the control point 2 of the curve.
|
float |
getPosition2Y()
Gets or sets a float value that indicates the y-coordinate of the control point 2 of the curve.
|
float |
getPosition3X()
Gets or sets a float value that indicates the x-coordinate of the control point 3 of the curve.
|
float |
getPosition3Y()
Gets or sets a float value that indicates the y-coordinate of the control point 3 of the curve.
|
float |
getPosition4X()
Gets or sets a float value that indicates the x-coordinate of the control point 4 of the curve.
|
float |
getPosition4Y()
Gets or sets a float value that indicates the y-coordinate of the control point 4 of the curve.
|
void |
setPosition1X(float value) |
void |
setPosition1Y(float value) |
void |
setPosition2X(float value) |
void |
setPosition2Y(float value) |
void |
setPosition3X(float value) |
void |
setPosition3Y(float value) |
void |
setPosition4X(float value) |
void |
setPosition4Y(float value) |
getGraphInfo, setGraphInfo
public Curve(float[] positionArr)
Initializes a new instance of the Curve
class.
positionArr
- The position array of the control points of the curve.There should be four
control points,so the length of the array should be eight.public float getPosition1X()
Gets or sets a float value that indicates the x-coordinate of the control point 1 of the curve.
public void setPosition1X(float value)
public float getPosition1Y()
Gets or sets a float value that indicates the y-coordinate of the control point 1 of the curve.
public void setPosition1Y(float value)
public float getPosition2X()
Gets or sets a float value that indicates the x-coordinate of the control point 2 of the curve.
public void setPosition2X(float value)
public float getPosition2Y()
Gets or sets a float value that indicates the y-coordinate of the control point 2 of the curve.
public void setPosition2Y(float value)
public float getPosition3X()
Gets or sets a float value that indicates the x-coordinate of the control point 3 of the curve.
public void setPosition3X(float value)
public float getPosition3Y()
Gets or sets a float value that indicates the y-coordinate of the control point 3 of the curve.
public void setPosition3Y(float value)
public float getPosition4X()
Gets or sets a float value that indicates the x-coordinate of the control point 4 of the curve.
public void setPosition4X(float value)
public float getPosition4Y()
Gets or sets a float value that indicates the y-coordinate of the control point 4 of the curve.
public void setPosition4Y(float value)
Copyright © 2017 Aspose. All Rights Reserved.