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
Properties
Length
Euclidean length of the vector.
public float Length { get; }
Property Value
X
public float X { get; init; }
Property Value
Y
public float Y { get; init; }
Property Value
Zero
The origin.
public static Point Zero { get; }
Property Value
Methods
Lerp(Point, Point, float)
Linear interpolation between two points.
public static Point Lerp(Point a, Point b, float t)
Parameters
Returns
Operators
operator +(Point, Point)
Adds two points component-wise.
public static Point operator +(Point a, Point b)
Parameters
Returns
operator *(Point, float)
Scales a point.
public static Point operator *(Point a, float s)
Parameters
Returns
operator -(Point, Point)
Subtracts two points component-wise.
public static Point operator -(Point a, Point b)