Click or drag to resize

Vector4I Structure

A structure encapsulating four integer values.
Inheritance Hierarchy
SystemObject
  SystemValueType
    NeoAxisVector4I

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

The Vector4I type exposes the following members.

Constructors
 NameDescription
Public methodVector4I(Vector4I) Constructs a vector with another given vector.
Public methodVector4I(Vector3I, Int32) Constructs a Vector4I from the given Vector3I and a W component.
Public methodVector4I(Int32, Int32, 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 methodStatic memberDivide(Int32, Vector4I, Vector4I) Divides a scalar by a vector.
Public methodStatic memberDivide(Vector4I, Vector4I, Vector4I) Divides the first vector by the second vector.
Public methodStatic memberDivide(Vector4I, Int32, Vector4I) Divides a vector by a given scalar.
Public methodEquals(Object) Determines whether the specified object is equal to the current instance of Vector4I.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Vector4I, Int32) Determines whether the specified vector is equal to the current instance of Vector4I 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 Vector4.
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 Vector4I.
Public methodStatic memberMultiply(Int32, Vector4I, Vector4I) Multiplies a vector by a given scalar.
Public methodStatic memberMultiply(Vector4I, Vector4I, Vector4I) Multiplies two vectors together.
Public methodStatic memberMultiply(Vector4I, Int32, Vector4I) 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 Vector4I 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 Vector4I.
(Overrides ValueTypeToString)
Public methodToVec4 Converts the current instance of Vector4I into the equivalent Vector4 structure.
Public methodToVector2I Converts the current instance of Vector4I into an instance of Vector2I.
Public methodToVector3I Converts the current instance of Vector4I into an instance of Vector3I.
Public methodToVector4F Converts the current instance of Vector4I into the equivalent Vector4F structure.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Vector4I, Vector4I) Adds two vectors.
Public operatorStatic memberDivision(Int32, Vector4I) Divides a scalar by a vector.
Public operatorStatic memberDivision(Vector4I, Vector4I) Divides the first vector by the second vector.
Public operatorStatic memberDivision(Vector4I, Int32) Divides a vector by a given scalar.
Public operatorStatic memberEquality(Vector4I, Vector4I) Determines whether two given vectors are equal.
Public operatorStatic memberInequality(Vector4I, Vector4I) Determines whether two given vectors are unequal.
Public operatorStatic memberMultiply(Int32, Vector4I) Multiplies a vector by a given scalar.
Public operatorStatic memberMultiply(Vector4I, Vector4I) Multiplies two vectors together.
Public operatorStatic memberMultiply(Vector4I, Int32) Multiplies a vector by a given scalar.
Public operatorStatic memberSubtraction(Vector4I, Vector4I) Subtracts two vectors.
Public operatorStatic memberUnaryNegation(Vector4I) Reverses the direction of a given vector.
Top
Fields
 NameDescription
Public fieldStatic memberOne Returns the vector (1,1,1,1).
Public fieldW The W component of the vector.
Public fieldX The X component of the vector.
Public fieldY The Y component of the vector.
Public fieldZ The Z component of the vector.
Public fieldStatic memberZero Returns the vector (0,0,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