Table of Contents

Struct Point

Namespace
PluginUI
Assembly
PluginUI.dll

Point in device-independent pixels (DIPs, 1/96 inch).

public readonly record struct Point : IEquatable<Point>
Implements
Inherited Members

Constructors

Point(float, float)

Point in device-independent pixels (DIPs, 1/96 inch).

public Point(float X, float Y)

Parameters

X float
Y float

Properties

Length

Euclidean length of the vector.

public float Length { get; }

Property Value

float

X

public float X { get; init; }

Property Value

float

Y

public float Y { get; init; }

Property Value

float

Zero

The origin.

public static Point Zero { get; }

Property Value

Point

Methods

Lerp(Point, Point, float)

Linear interpolation between two points.

public static Point Lerp(Point a, Point b, float t)

Parameters

a Point
b Point
t float

Returns

Point

Operators

operator +(Point, Point)

Adds two points component-wise.

public static Point operator +(Point a, Point b)

Parameters

a Point
b Point

Returns

Point

operator *(Point, float)

Scales a point.

public static Point operator *(Point a, float s)

Parameters

a Point
s float

Returns

Point

operator -(Point, Point)

Subtracts two points component-wise.

public static Point operator -(Point a, Point b)

Parameters

a Point
b Point

Returns

Point