Click or drag to resize
SbVec3f Structure
3D vector class.

3D vector class used to store 3D vectors and points. This class is used throughout Open Inventor for arguments and return values.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.0.Release.b1c2f41e1719ac8d4c3f00435c0b4b040d8bfcc0
Syntax
public struct SbVec3f

The SbVec3f type exposes the following members.

Constructors
Methods
  NameDescription
Public methodStatic memberConvertFromT
Try to convert a structure to an SbVec3f value type.
Public methodCross(SbVec3f)
Returns right-handed cross product of vector and another vector.
Public methodCross(SbVec3f)
Returns right-handed cross product of vector and another vector.
Public methodDot(SbVec3f)
Compute dot (inner) product of vector with v vector.
Public methodDot(SbVec3f)
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, Single)
Returns a value indicating whether this instance is equal to a specified object with given tolerance.
Public methodGetClosestAxis
Returns principal axis that is closest (based on maximum dot product) to this vector.
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 giving an array of 3 double.
Public methodSetValue(Single)
Sets the vector components giving an array of 3 float.
Public methodSetValue(SbVec3d)
Sets value of vector from a double precision vector.
Public methodSetValue(SbVec3d)
Sets value of vector from a double precision vector.
Public methodSetValue(Double, Double, Double)
Sets the vector components.
Public methodSetValue(Single, Single, Single)
Sets the vector components.
Public methodSetValue(SbVec3f, SbVec3f, SbVec3f, SbVec3f)
Sets value of vector as the weighted average of 3 other vectors.
Public methodSetValue(SbVec3f, SbVec3f, SbVec3f, SbVec3f)
Sets value of vector as the weighted average of 3 other vectors.
Public methodToArray
Returns an array representation of vector components.
Public methodToString
Converts this SbVec3f 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(SbVec3f, SbVec3f)
The division operator (/) divides each components of vector v1 by components of vector v2.
Public operatorStatic memberDivision(SbVec3f, Single)
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(Single, SbVec3f)
The multiplication operator (*), which applies on each component of v1 the d multiplicative factor.
Public operatorStatic memberMultiply(SbVec3f, SbVec3f)
The multiplication operator (*), which multiply each component of v1 by each component of vector v2.
Public operatorStatic memberMultiply(SbVec3f, Single)
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.
Public propertyZ
Gets or sets the z component of vector.
Top
See Also