Table of Contents

Struct NuiVector

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Represents a 2D vector in NUI coordinate space.

public readonly struct NuiVector : IEquatable<NuiVector>
Implements
Inherited Members
Extension Methods

Constructors

NuiVector(float, float)

Represents a 2D vector in NUI coordinate space.

Fields

X

Gets the horizontal component of the vector.

Y

Gets the vertical component of the vector.

Methods

Equals(NuiVector)

Indicates whether this vector is equal to another.

Equals(object?)

Indicates whether this instance is equal to a specified object.

GetHashCode()

Returns a hash code for this vector.

Operators

operator +(NuiVector, NuiVector)

Adds two NuiVector values.

operator ==(NuiVector, NuiVector)

Determines whether two NuiVector values are equal.

implicit operator Vector2(NuiVector)

Converts a NuiVector to a Vector2.

implicit operator NuiVector(Vector2)

Converts a Vector2 to a NuiVector.

operator !=(NuiVector, NuiVector)

Determines whether two NuiVector values are not equal.

operator -(NuiVector, NuiVector)

Subtracts one NuiVector from another.