SbVec2d Structure |
2D vector class used to store 2D vectors and points using double precision values. Although Open Inventor fields still store only single precision values, for certain applications it is useful and convenient to be able to store and manipulate double precision values, for example, double precision coordinate data or values that will be used for further computation.
Namespace: OIV.Inventor
The SbVec2d type exposes the following members.
Name | Description | |
---|---|---|
SbVec2d(Double) |
Constructor given vector components.
| |
SbVec2d(Double) |
Constructor given vector components.
| |
SbVec2d(Double, Double) |
Constructor given vector components x and y.
|
Name | Description | |
---|---|---|
ConvertFromT |
Try to convert a structure to an SbVec2d value type.
| |
Dot(SbVec2d) |
Compute dot (inner) product of vector with v vector.
| |
Dot(SbVec2d) |
Compute dot (inner) product of vector with v vector.
| |
Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).) | |
Equals(Object, Double) |
Returns a value indicating whether this instance is equal to a specified object
with given tolerance.
| |
GetHashCode |
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Gets the vector components.
| |
Length |
Computes geometric length of vector.
| |
Negate |
Negates each component of this vector.
| |
Normalize |
Changes vector to be unit length, returning the length before normalization.
| |
SetValue(Double) |
Sets the vector components.
| |
SetValue(SbVec2f) |
Sets value of vector from a single precision vector.
| |
SetValue(SbVec2f) |
Sets value of vector from a single precision vector.
| |
SetValue(Double, Double) |
Sets the vector components.
| |
ToArray |
Returns an array representation of vector components.
| |
ToString |
Converts this SbVec2d structure to a human readable string.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Addition |
Additive (+) operator. Performs the addition between the vectors v1
and v2.
| |
Division |
The division operator (/) divides each components of vector v1
by d.
| |
Equality |
The equality operator.
| |
Inequality |
The inequality operator.
| |
Multiply(Double, SbVec2d) |
The multiplication operator (*), which applies on each component of
v1 the d multiplicative factor.
| |
Multiply(SbVec2d, Double) |
The multiplication operator (*), which applies on each component of
v1 the d multiplicative factor.
| |
Subtraction |
Subtraction (–) operator. Performs the difference between the vectors v1
and v2.
| |
UnaryNegation |
The unary negation operator (-). Negates each vector component.
|
Name | Description | |
---|---|---|
Item |
Gets or sets the vector component at the specified index.
| |
X |
Gets or sets the x component of vector.
| |
Y |
Gets or sets the y component of vector.
|