Java org.apache.commons.math3.complex Quaternion fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.complex Quaternion fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.complex Quaternion.

The text is from its open source code.

Constructor

Quaternion(final double a, final double b, final double c, final double d)
Builds a quaternion from its components.
Quaternion(final double scalar, final double[] v)
Builds a quaternion from scalar and vector parts.

Method

doubledotProduct(final Quaternion q1, final Quaternion q2)
Computes the dot-product of two quaternions.
doubledotProduct(final Quaternion q)
Computes the dot-product of the instance by a quaternion.
QuaterniongetConjugate()
Returns the conjugate quaternion of the instance.
doublegetQ0()
Gets the first component of the quaternion (scalar part).
doublegetQ1()
Gets the second component of the quaternion (first component of the vector part).
doublegetQ2()
Gets the third component of the quaternion (second component of the vector part).
doublegetQ3()
Gets the fourth component of the quaternion (third component of the vector part).
doublegetScalarPart()
Gets the scalar part of the quaternion.
double[]getVectorPart()
Gets the three components of the vector part of the quaternion.
Quaternionmultiply(final Quaternion q)
Returns the Hamilton product of the instance by a quaternion.
Quaternionmultiply(final double alpha)
Multiplies the instance by a scalar.
Quaternionnormalize()
Computes the normalized quaternion (the versor of the instance).