In This Article

PointExtensions Class

Provides extension methods for the Avalonia.Point type.

public static class PointExtensions
Inheritance:
object object

Methods

GetEndPoint(Point, Angle, double)

Returns the end Avalonia.Point that is length distance at an angle from the start Avalonia.Point.

public static Point GetEndPoint(this Point startPoint, Angle angle, double length)
Parameter Type Description
startPoint Point

The start point.

angle Angle

The angle between the start and end points.

length double

The distance between the start and end points.

Returns

Point:

The end point.

Remarks

This method doesn't follow the standard Polar coordinate system rules, and instead uses a custom coordinate system that is better for user interaction. In the custom coordinate system, up is zero degrees and angles increase in clockwise direction. Whereas in the standard Polar system, right is zero degrees and angles increase in the counterclockwise direction.

Inherited Members