Skip to main content

Struct SKPoint

Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll

public struct SKPoint : IEquatable<SKPoint>

Implements​

IEquatable<SKPoint>

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors​

SKPoint(float, float)​

public SKPoint(float x, float y)

Parameters​

x float

y float

Properties​

X​

public float X { readonly get; set; }

Property Value​

float

Y​

public float Y { readonly get; set; }

Property Value​

float

Methods​

Equals(SKPoint)​

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(SKPoint other)

Parameters​

other SKPoint

An object to compare with this object.

Returns​

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)​

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters​

obj object?

The object to compare with the current instance.

Returns​

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()​

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns​

int

A 32-bit signed integer that is the hash code for this instance.

Operators​

operator ==(SKPoint, SKPoint)​

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

Parameters​

left SKPoint

right SKPoint

Returns​

bool

implicit operator Vector2(SKPoint)​

public static implicit operator Vector2(SKPoint point)

Parameters​

point SKPoint

Returns​

Vector2

operator !=(SKPoint, SKPoint)​

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

Parameters​

left SKPoint

right SKPoint

Returns​

bool