PixelVector Structure

Defines a vector.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct PixelVector
Inheritance
Object    ValueType    PixelVector

Properties

Length Length of the vector
X Gets the X vector.
Y Gets the Y vector.

Methods

Equals(Object)
(Overrides ValueTypeEquals(Object))
Equals(PixelVector) Check if two vectors are equal (bitwise).
GetHashCode
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
NearlyEquals(PixelVector) Check if two vectors are nearly equal (numerically).
ToString Returns the string representation of the point.
(Overrides ValueTypeToString)
WithX(Int32) Returns a new vector with the specified X coordinate.
WithY(Int32) Returns a new vector with the specified Y coordinate.

Operators

See Also