Click or drag to resize

Vector2I Structure

A structure encapsulating two integer values.
Inheritance Hierarchy
SystemObject
  SystemValueType
    NeoAxisVector2I

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public struct Vector2I

The Vector2I type exposes the following members.

Constructors
 NameDescription
Public methodVector2I(Vector2I) Constructs a vector with another given vector.
Public methodVector2I(Int32, Int32) Constructs a vector with the given individual elements.
Top
Properties
 NameDescription
Public propertyItem Gets or sets the component at the specified index.
Top
Methods
 NameDescription
Public methodStatic memberAdd Adds two vectors.
Public methodStatic memberAllNonZero Determines whether all components of a given vector are unequal to the zero.
Public methodStatic memberAnyNonZero Determines whether any component of a given vector is unequal to the zero.
Public methodClamp Restricts the current instance of Vector2I to be within a specified range and returns the clamped value.
Public methodStatic memberCross(Vector2I, Vector2I) Calculates the cross product of two vectors.
Public methodStatic memberCross(Vector2I, Vector2I, Vector2I) Calculates the cross product of two vectors.
Public methodStatic memberDivide(Int32, Vector2I, Vector2I) Divides a scalar by a vector.
Public methodStatic memberDivide(Vector2I, Vector2I, Vector2I) Divides the first vector by the second vector.
Public methodStatic memberDivide(Vector2I, Int32, Vector2I) Divides a vector by a given scalar.
Public methodStatic memberDot(Vector2I, Vector2I) Calculates the dot product of two vectors.
Public methodStatic memberDot(Vector2I, Vector2I, Int32) Calculates the dot product of two vectors.
Public methodEquals(Object) Determines whether the specified object is equal to the current instance of Vector2I.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Vector2I, Int32) Determines whether the specified vector is equal to the current instance of Vector2I with a given precision.
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberMax Returns a vector containing the largest components of the specified vectors.
Public methodMaxComponent Returns the value of the largest component of the current instance of Vector2I.
Public methodStatic memberMin Returns a vector containing the smallest components of the specified vectors.
Public methodMinComponent Returns the value of the smallest component of the current instance of Vector2I.
Public methodStatic memberMultiply(Int32, Vector2I, Vector2I) Multiplies a vector by a given scalar.
Public methodStatic memberMultiply(Vector2I, Vector2I, Vector2I) Multiplies two vectors together.
Public methodStatic memberMultiply(Vector2I, Int32, Vector2I) Multiplies a vector by a given scalar.
Public methodStatic memberNegate Reverses the direction of a given vector.
Public methodStatic memberParse Converts a string representation of a vector into the equivalent Vector2I structure.
Public methodStatic memberSelect Chooses one of two vectors depending on the pick1 value.
Public methodStatic memberSubtract Subtracts two vectors.
Public methodToString Returns a String that represents the current instance of Vector2I.
(Overrides ValueTypeToString)
Public methodToVector2 Converts the current instance of Vector2I into the equivalent Vector2 structure.
Public methodToVector2F Converts the current instance of Vector2I into the equivalent Vector2F structure.
Public methodStatic memberTryParse 
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Vector2I, Vector2I) Adds two vectors.
Public operatorStatic memberDivision(Int32, Vector2I) Divides a scalar by a vector.
Public operatorStatic memberDivision(Vector2I, Vector2I) Divides the first vector by the second vector.
Public operatorStatic memberDivision(Vector2I, Int32) Divides a vector by a given scalar.
Public operatorStatic memberEquality(Vector2I, Vector2I) Determines whether two given vectors are equal.
Public operatorStatic memberInequality(Vector2I, Vector2I) Determines whether two given vectors are unequal.
Public operatorStatic memberMultiply(Int32, Vector2I) Multiplies a vector by a given scalar.
Public operatorStatic memberMultiply(Vector2I, Vector2I) Multiplies two vectors together.
Public operatorStatic memberMultiply(Vector2I, Int32) Multiplies a vector by a given scalar.
Public operatorStatic memberSubtraction(Vector2I, Vector2I) Subtracts two vectors.
Public operatorStatic memberUnaryNegation(Vector2I) Reverses the direction of a given vector.
Top
Fields
 NameDescription
Public fieldStatic memberOne Returns the vector (1,1).
Public fieldX The X component of the vector.
Public fieldY The Y component of the vector.
Public fieldStatic memberZero Returns the vector (0,0).
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also