Vector3 Structure |
Namespace: ABB.Robotics.Math
public struct Vector3
The Vector3 type exposes the following members.
Name | Description | |
---|---|---|
Vector3(Double) |
Creates a vector from an array of doubles.
| |
Vector3(Axis) |
Creates a unit vector from an axis
| |
Vector3(Vector4) |
Creates a vector from a 4-vector, truncating the last element.
| |
Vector3(Vector4, Boolean) |
Creates a vector from a homogenous 4-vector.
| |
Vector3(Double, Double, Double) |
Creates a vector from three doubles.
|
Name | Description | |
---|---|---|
IsNaN |
Returns a value indicating whether any elements evaluates to a value that is not a number (NaN).
| |
Item |
Array access.
|
Name | Description | |
---|---|---|
Add |
Element-wise addition method.
| |
AlmostEquals(Vector3) |
Comparison method for vectors with tolerance (EPS)
| |
AlmostEquals(Vector3, Double) |
Comparison method for vectors with tolerance
| |
Angle(Vector3) |
Angle between this and a vector.
| |
Angle(Vector3, Vector3) |
Angle betsween this and a vector signed depending on rotation direction.
| |
Cross |
Cross product.
| |
Distance |
Returns the distance between this and a vector.
| |
Divide |
Vector scalar division method.
| |
Dot |
Dot product.
| |
Equals | (Overrides ValueTypeEquals(Object).) | |
GetHashCode | (Overrides ValueTypeGetHashCode.) | |
GetType | (Inherited from Object.) | |
Length |
Returns the length of this.
| |
LinearInterpolate |
Linear interpolation between this and a vector.
| |
Multiply |
Vector-scalar multiplication method.
| |
Normal |
Returns a unit vector normal to this
| |
Normalize |
Ensures that the length of this is 1.
| |
Normalized |
Returns a vector with the same direction as this, but with length 1
| |
Parse |
Converts the string representation to its Vector3 equivalent.
| |
Rotate |
Returns a vector that is this vector rotated around an axis.
| |
SphericalInterpolate |
Spherical interpolation between this and a vector.
| |
SquareDistance |
Returns the squared distance between this and a vector.
| |
SquareLength |
Returns the squared length of this.
| |
Subtract |
Element-wise subtraction method.
| |
ToArray |
Returns the elements (x,y,z) as an array
| |
ToString |
Returns a string in the format (Overrides ValueTypeToString.)[x y z] | |
ToString(Int32, String) |
Returns a string in the format x y z with a specified number of decimals
and separator between the elements.
| |
TransformPoint |
Transforms a point between coordinate systems.
| |
TransformVector |
Transforms a vector between coordinate systems.
| |
TryParse |
Converts the string representation to its Vector3 equivalent.
|
Name | Description | |
---|---|---|
Addition |
Element-wise addition operator.
| |
Division |
Vector-scalar division operator.
| |
Equality |
Equality operator
| |
(Double to Vector3) |
Array to vector conversion.
| |
Inequality |
Inequality operator
| |
Multiply(Double, Vector3) |
Scalar-Vector multiplication operator.
| |
Multiply(Vector3, Double) |
Vector-scalar multiplication operator.
| |
Subtraction |
Element-wise subtraction operator.
| |
UnaryNegation |
Unary negation operator.
|
Name | Description | |
---|---|---|
x |
x,y,z values.
| |
XVector |
Unit vector in the x direction.
| |
y |
x,y,z values.
| |
YVector |
Unit vector in the y direction.
| |
z |
x,y,z values.
| |
ZeroVector |
Zero-length vector.
| |
ZVector |
Unit vector in the z direction.
|