Click or drag to resize

Vector3I Structure

A structure encapsulating three integer values.

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

The Vector3I type exposes the following members.

Constructors
  NameDescription
Public methodVector3I(Vector3I)
Constructs a vector with another given vector.
Public methodVector3I(Vector2I, Int32)
Constructs a vector with a given Vector2I and a scalar.
Public methodVector3I(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 methodClamp
Restricts the current instance of Vector3I to be within a specified range and returns the clamped value.
Public methodStatic memberCross(Vector3I, Vector3I)
Calculates the cross product of two vectors.
Public methodStatic memberCross(Vector3I, Vector3I, Vector3I)
Calculates the cross product of two vectors.
Public methodStatic memberDivide(Int32, Vector3I, Vector3I)
Divides a scalar by a vector.
Public methodStatic memberDivide(Vector3I, Vector3I, Vector3I)
Divides the first vector by the second vector.
Public methodStatic memberDivide(Vector3I, Int32, Vector3I)
Divides a vector by a given scalar.
Public methodStatic memberDot(Vector3I, Vector3I)
Calculates the dot product of two vectors.
Public methodStatic memberDot(Vector3I, Vector3I, Int32)
Calculates the dot product of two vectors.
Public methodEquals
Determines whether the specified object is equal to the current instance of Vector3I.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets 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 Vector3I.
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 Vector3I.
Public methodStatic memberMultiply(Int32, Vector3I, Vector3I)
Multiplies a vector by a given scalar.
Public methodStatic memberMultiply(Vector3I, Vector3I, Vector3I)
Multiplies two vectors together.
Public methodStatic memberMultiply(Vector3I, Int32, Vector3I)
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 Vector3I 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 Vector3I.
(Overrides ValueTypeToString.)
Public methodToVector2I
Converts the current instance of Vector3I into an instance of Vector2I.
Public methodToVector3
Converts the current instance of Vector3I into the equivalent Vector3 structure.
Public methodToVector3F
Converts the current instance of Vector3I into the equivalent Vector3F structure.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two vectors.
Public operatorStatic memberDivision(Int32, Vector3I)
Divides a scalar by a vector.
Public operatorStatic memberDivision(Vector3I, Vector3I)
Divides the first vector by the second vector.
Public operatorStatic memberDivision(Vector3I, Int32)
Divides a vector by a given scalar.
Public operatorStatic memberEquality
Determines whether two given vectors are equal.
Public operatorStatic memberInequality
Determines whether two given vectors are unequal.
Public operatorStatic memberMultiply(Int32, Vector3I)
Multiplies a vector by a given scalar.
Public operatorStatic memberMultiply(Vector3I, Vector3I)
Multiplies two vectors together.
Public operatorStatic memberMultiply(Vector3I, Int32)
Multiplies a vector by a given scalar.
Public operatorStatic memberSubtraction
Subtracts two vectors.
Public operatorStatic memberUnaryNegation
Reverses the direction of a given vector.
Top
Fields
  NameDescription
Public fieldStatic memberOne
Returns the vector (1,1,1,1).
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).
Top
Extension Methods
See Also