Class NaluGraphicsPathExtensions
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Core.dll
PathF extension methods to allow for path construction using relative coordinates
public static class NaluGraphicsPathExtensions
- Inheritance
-
NaluGraphicsPathExtensions
- Inherited Members
Methods
RelativeCurveTo(PathF, float, float, float, float, float, float)
Adds a cubic Bézier curve segment using coordinate values.
public static PathF RelativeCurveTo(this PathF path, float c1X, float c1Y, float c2X, float c2Y, float x, float y)
Parameters
pathPathFThe path to which the line will be added.
c1XfloatX-coordinate of the first control point.
c1YfloatY-coordinate of the first control point.
c2XfloatX-coordinate of the second control point.
c2YfloatY-coordinate of the second control point.
xfloatX-coordinate of the end point.
yfloatY-coordinate of the end point.
Returns
- PathF
The current path.
RelativeLineTo(PathF, float, float)
Adds a line to the path from the current coordinates to the specified coordinates, where the specified coordinates are relative to the current coordinates.
public static PathF RelativeLineTo(this PathF path, float x, float y)
Parameters
pathPathFThe path to which the line will be added.
xfloatThe X coordinate of the end point of the line, relative to the current X coordinate.
yfloatThe Y coordinate of the end point of the line, relative to the current Y coordinate.
Returns
- PathF
The updated path.
RelativeQuadTo(PathF, float, float, float, float)
Adds a quadratic Bézier curve segment using coordinate values.
public static PathF RelativeQuadTo(this PathF path, float cx, float cy, float x, float y)
Parameters
pathPathFThe path to which the line will be added.
cxfloatX-coordinate of the control point.
cyfloatY-coordinate of the control point.
xfloatX-coordinate of the end point.
yfloatY-coordinate of the end point.
Returns
- PathF
The current path.