Click or drag to resize
Vector3 Structure
Three element vector, typically used to describe a position, normal or euler rotation.

Namespace:  ABB.Robotics.Math
Assembly:  ABB.Robotics.Math (in ABB.Robotics.Math.dll) Version: 7.0.8747.636
Syntax
C#
public struct Vector3

The Vector3 type exposes the following members.

Constructors
  NameDescription
Public methodVector3(Double)
Creates a vector from an array of doubles.
Public methodVector3(Axis)
Creates a unit vector from an axis
Public methodVector3(Vector4)
Creates a vector from a 4-vector, truncating the last element.
Public methodVector3(Vector4, Boolean)
Creates a vector from a homogenous 4-vector.
Public methodVector3(Double, Double, Double)
Creates a vector from three doubles.
Top
Properties
  NameDescription
Public propertyIsNaN
Returns a value indicating whether any elements evaluates to a value that is not a number (NaN).
Public propertyItem
Array access.
Top
Methods
  NameDescription
Public methodAdd
Element-wise addition method.
Public methodAlmostEquals(Vector3)
Comparison method for vectors with tolerance (EPS)
Public methodAlmostEquals(Vector3, Double)
Comparison method for vectors with tolerance
Public methodAngle(Vector3)
Angle between this and a vector.
Public methodAngle(Vector3, Vector3)
Angle betsween this and a vector signed depending on rotation direction.
Public methodCross
Cross product.
Public methodDistance
Returns the distance between this and a vector.
Public methodDivide
Vector scalar division method.
Public methodDot
Dot product.
Public methodEquals
Public methodGetHashCode
Public methodGetType (Inherited from Object.)
Public methodLength
Returns the length of this.
Public methodLinearInterpolate
Linear interpolation between this and a vector.
Public methodMultiply
Vector-scalar multiplication method.
Public methodNormal
Returns a unit vector normal to this
Public methodNormalize
Ensures that the length of this is 1.
Public methodNormalized
Returns a vector with the same direction as this, but with length 1
Public methodStatic memberParse
Converts the string representation to its Vector3 equivalent.
Public methodRotate
Returns a vector that is this vector rotated around an axis.
Public methodSphericalInterpolate
Spherical interpolation between this and a vector.
Public methodSquareDistance
Returns the squared distance between this and a vector.
Public methodSquareLength
Returns the squared length of this.
Public methodSubtract
Element-wise subtraction method.
Public methodToArray
Returns the elements (x,y,z) as an array
Public methodToString
Returns a string in the format
[x y z]
(Overrides ValueTypeToString.)
Public methodToString(Int32, String)
Returns a string in the format x y z with a specified number of decimals and separator between the elements.
Public methodTransformPoint
Transforms a point between coordinate systems.
Public methodTransformVector
Transforms a vector between coordinate systems.
Public methodStatic memberTryParse
Converts the string representation to its Vector3 equivalent.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Element-wise addition operator.
Public operatorStatic memberDivision
Vector-scalar division operator.
Public operatorStatic memberEquality
Equality operator
Public operatorStatic member(Double to Vector3)
Array to vector conversion.
Public operatorStatic memberInequality
Inequality operator
Public operatorStatic memberMultiply(Double, Vector3)
Scalar-Vector multiplication operator.
Public operatorStatic memberMultiply(Vector3, Double)
Vector-scalar multiplication operator.
Public operatorStatic memberSubtraction
Element-wise subtraction operator.
Public operatorStatic memberUnaryNegation
Unary negation operator.
Top
Fields
  NameDescription
Public fieldx
x,y,z values.
Public fieldStatic memberXVector
Unit vector in the x direction.
Public fieldy
x,y,z values.
Public fieldStatic memberYVector
Unit vector in the y direction.
Public fieldz
x,y,z values.
Public fieldStatic memberZeroVector
Zero-length vector.
Public fieldStatic memberZVector
Unit vector in the z direction.
Top
Version Information

Supported in: 1.0
See Also