Cog3DQuaternion StructureCognex VisionPro 9.7
This value class describes a quaternion representation and associated operations.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 73.0.0.0
Syntax

[SerializableAttribute]
public struct Cog3DQuaternion

The Cog3DQuaternion type exposes the following members.

Constructors

  NameDescription
Public methodCog3DQuaternion
Construct this Cog3DQuaternion with the supplied W,X,Y,Z values.
Top
Methods

  NameDescription
Public methodComputeConjugate
Gets the conjugate quaternion of this quaternion, which is defined as follows: W - X i - Y j - Z k
Public methodComputeGrassmannProduct
Compute the Grassmann product of this Cog3DQuaternion with the supplied other.
Public methodComputeInnerProduct
Compute the inner product of this Cog3DQuaternion with the supplied other.
Public methodComputeUnitQuaternion
Gets the normalized quaternion (a unit quaternion) whose Norm value is 1.
Public methodEquals (Overrides ValueType Equals(Object).)
Public methodGetHashCode (Overrides ValueType GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberRealEqual
Compares the internal state of the specified instances and returns true if the internal state is within epsilon.
Public methodToString
Override of ToString method to get a string for describing this object.
(Overrides ValueType ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Add two quaternions.
Public operatorStatic memberEquality
Compare two Cog3DQuaternion.
Public operatorStatic memberInequality
Compare two Cog3DQuaternion.
Public operatorStatic memberMultiply
Multiply a Cog3DQuaternion by a scalar.
Public operatorStatic memberSubtraction
Subtract two quaternions: alpha - beta.
Top
Properties

  NameDescription
Public propertyNorm
Gets the norm (magnitude) value of this quaternion object.
Public propertyNormSquared
Gets the norm squared value of this quaternion object.
Public propertyW
Gets the scalar part (the first component) of this quaternion.
Public propertyX
Gets the second component of this quaternion object.
Public propertyXYZ
Gets the vector (imaginary) part of this quaternion object.
Public propertyY
Gets the third component of this quaternion object.
Public propertyZ
Gets the fourth component of this quaternion object.
Top
Remarks

  • This class is immutable - it may not be changed once it has been constructed.
  • The default constructor creates a zero quaternion, which is not valid for usage by Cog3DTransformRotation.
  • Although quaternions are useful in calculations involving 3D rotations, users should use Cog3DTransformRotation for general 3D rotation operations.
See Also