Click or drag to resize
SbVec2d Structure
2D vector class (double precision).

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
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 10.3.0.0.Release.e0557e69f65c2f4b712d9d57d8855c64671533f0
Syntax
public struct SbVec2d

The SbVec2d type exposes the following members.

Constructors
  NameDescription
Public methodSbVec2d(Double)
Constructor given vector components.
Public methodSbVec2d(Double)
Constructor given vector components.
Public methodSbVec2d(Double, Double)
Constructor given vector components x and y.
Top
Methods
  NameDescription
Public methodStatic memberConvertFromT
Try to convert a structure to an SbVec2d value type.
Public methodDot(SbVec2d)
Compute dot (inner) product of vector with v vector.
Public methodDot(SbVec2d)
Compute dot (inner) product of vector with v vector.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Object, Double)
Returns a value indicating whether this instance is equal to a specified object with given tolerance.
Public methodGetHashCode
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Gets the vector components.
Public methodLength
Computes geometric length of vector.
Public methodNegate
Negates each component of this vector.
Public methodNormalize
Changes vector to be unit length, returning the length before normalization.
Public methodSetValue(Double)
Sets the vector components.
Public methodSetValue(SbVec2f)
Sets value of vector from a single precision vector.
Public methodSetValue(SbVec2f)
Sets value of vector from a single precision vector.
Public methodSetValue(Double, Double)
Sets the vector components.
Public methodToArray
Returns an array representation of vector components.
Public methodToString
Converts this SbVec2d structure to a human readable string.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Additive (+) operator. Performs the addition between the vectors v1 and v2.
Public operatorStatic memberDivision
The division operator (/) divides each components of vector v1 by d.
Public operatorStatic memberEquality
The equality operator.
Public operatorStatic memberInequality
The inequality operator.
Public operatorStatic memberMultiply(Double, SbVec2d)
The multiplication operator (*), which applies on each component of v1 the d multiplicative factor.
Public operatorStatic memberMultiply(SbVec2d, Double)
The multiplication operator (*), which applies on each component of v1 the d multiplicative factor.
Public operatorStatic memberSubtraction
Subtraction (–) operator. Performs the difference between the vectors v1 and v2.
Public operatorStatic memberUnaryNegation
The unary negation operator (-). Negates each vector component.
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the vector component at the specified index.
Public propertyX
Gets or sets the x component of vector.
Public propertyY
Gets or sets the y component of vector.
Top
See Also