Table of Contents

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

path PathF

The path to which the line will be added.

c1X float

X-coordinate of the first control point.

c1Y float

Y-coordinate of the first control point.

c2X float

X-coordinate of the second control point.

c2Y float

Y-coordinate of the second control point.

x float

X-coordinate of the end point.

y float

Y-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

path PathF

The path to which the line will be added.

x float

The X coordinate of the end point of the line, relative to the current X coordinate.

y float

The 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

path PathF

The path to which the line will be added.

cx float

X-coordinate of the control point.

cy float

Y-coordinate of the control point.

x float

X-coordinate of the end point.

y float

Y-coordinate of the end point.

Returns

PathF

The current path.