Vector4 Structure |
Namespace: ABB.Robotics.Math
public struct Vector4
The Vector4 type exposes the following members.
Name | Description | |
---|---|---|
Vector4(Double) |
Creates a vector from an array. Sets w=1 if the array has less than four elements. | |
Vector4(Vector3, Double) |
Creates a vector from a 3-vector and a scalar.
| |
Vector4(Double, Double, Double) |
Creates a vector from three doubles and sets w=1.
| |
Vector4(Double, Double, Double, Double) |
Creates a vector from four 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.
| |
AlmostEquals(Vector4) |
Comparison method for vectors with default tolerance
| |
AlmostEquals(Vector4, Double) |
Comparison method for vectors with tolerance
| |
Divide |
Vector-scalar division method.
| |
Dot |
Dot product.
| |
Equals | (Overrides ValueTypeEquals(Object).) | |
GetHashCode | (Overrides ValueTypeGetHashCode.) | |
GetType | (Inherited from Object.) | |
Length |
Returns the magnitude of this.
| |
Multiply |
Vector-scalar multiplication.
| |
Normalize |
Ensures that the magnitude of this is 1.
| |
Subtract |
Element-wise subtraction.
| |
ToArray |
Returns the elements (x,y,z,w) as an array
| |
ToString |
Returns a string in the format (Overrides ValueTypeToString.)[x y z w] |
Name | Description | |
---|---|---|
Addition |
Element-wise addition operator.
| |
Division |
Vector-scalar division operator.
| |
Equality |
Equality operator
| |
(Double to Vector4) |
Array to vector conversion.
| |
Inequality |
Inequality operator
| |
Multiply(Double, Vector4) |
Scalar-Vector multiplication operator.
| |
Multiply(Vector4, Double) |
Vector-scalar multiplication operator.
| |
Subtraction |
Element-wise subtraction operator.
| |
UnaryNegation |
Unary negation operator.
|