PathPoint Struct

A point of a path, with the direction of the path there (PathData.GetPointAtLength).

public readonly struct PathPoint : IEquatable<PathPoint>
Implements

Constructors

NameDescription
PathPoint(double, double, double)A point of a path, with the direction of the path there (PathData.GetPointAtLength).

PathPoint(double, double, double)

A point of a path, with the direction of the path there (PathData.GetPointAtLength).

public PathPoint(double X, double Y, double Angle)

Parameters

X double
The x coordinate.
Y double
The y coordinate.
Angle double
The direction of the path, in degrees, clockwise from the x axis (the y axis points down).

Properties

NameDescription
AngleThe direction of the path, in degrees, clockwise from the x axis (the y axis points down).
XThe x coordinate.
YThe y coordinate.

The direction of the path, in degrees, clockwise from the x axis (the y axis points down).

public double Angle { get; init; }

Property value

double

The x coordinate.

public double X { get; init; }

Property value

double

The y coordinate.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double, double)
Equals(PathPoint)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double, double)

public void Deconstruct(out double X, out double Y, out double Angle)

Parameters

X double
Y double
Angle double

No documentation is available.

Equals overloads

Equals(PathPoint)

public bool Equals(PathPoint other)
Parameters
other PathPoint
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(PathPoint, PathPoint)
operator !=(PathPoint, PathPoint)

operator ==(PathPoint, PathPoint)

public static bool operator ==(PathPoint left, PathPoint right)

Parameters

left PathPoint
right PathPoint

Returns

bool

No documentation is available.

operator !=(PathPoint, PathPoint)

public static bool operator !=(PathPoint left, PathPoint right)

Parameters

left PathPoint
right PathPoint

Returns

bool

No documentation is available.