Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jbergin.util
Class OpenQuaternion

    java.lang.Object
      Quaternion
          com.jbergin.util.OpenQuaternion

    public class OpenQuaternion

extends Quaternion

A class that reveals the coefficients of a quaternion.

Author:
  Joseph Bergin

Constructor Summary
`OpenQuaternion(double x, double y, double z, double r)` Obtain an open quaternion with given coefficients.

Method Summary
`double` | `r()` Get the real coefficient
`java.lang.String` | `toString()`
`double` | `x()` Obtain the x coefficient
`double` | `y()` Obtain the y coefficient
`double` | `z()` Obtain the z coefficient

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### OpenQuaternion

    public OpenQuaternion(double x,
                          double y,
                          double z,
                          double r)

  Obtain an open quaternion with given coefficients. Note the real coefficient is given last.

  Parameters:
    `x` - the x coefficient
    `y` - the y coefficient
    `z` - the z coefficient
    `r` - the real coefficient

Method Detail

### x

    public double x()

  Obtain the x coefficient

  Returns:
    the x coefficient

### y

    public double y()

  Obtain the y coefficient

  Returns:
    the y coefficient

### z

    public double z()

  Obtain the z coefficient

  Returns:
    the z coefficient

### r

    public double r()

  Get the real coefficient

  Returns:
    the real coefficient.

### toString

    public java.lang.String toString()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD