PixelVector Struct

Summary

Defines a vector.
Namespace
Avalonia
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["PixelVector"] class Type type-node

Syntax

public readonly struct PixelVector : ValueType

Constructors

Name Summary
PixelVector(int, int) Initializes a new instance of the PixelVector structure.

Properties

Name Value Summary
Length double
Length of the vector
X int
Gets the X vector.
Y int
Gets the Y vector.

Methods

Name Value Summary
Equals(object) bool
Equals(PixelVector) bool
Check if two vectors are equal (bitwise).
GetHashCode() int
NearlyEquals(PixelVector) bool
Check if two vectors are nearly equal (numerically).
ToString() string
Returns the string representation of the point.
WithX(int) PixelVector
Returns a new vector with the specified X coordinate.
WithY(int) PixelVector
Returns a new vector with the specified Y coordinate.

Operators

Name Value Summary
explicit operator PixelPoint(PixelVector) PixelPoint
operator !=(PixelVector, PixelVector) bool
operator -(PixelVector) PixelVector
operator -(PixelVector, PixelVector) PixelVector
operator *(PixelVector, int) PixelVector
operator *(PixelVector, PixelVector) int
operator /(PixelVector, int) PixelVector
operator +(PixelVector, PixelVector) PixelVector
operator ==(PixelVector, PixelVector) bool