AbstractQuaternion

io.github.edadma.numbers.AbstractQuaternion
abstract class AbstractQuaternion[T, Q <: Quaternion[T, Double, Q, QuaternionDouble]] extends Quaternion[T, Double, Q, QuaternionDouble]

Attributes

Graph
Supertypes
class Quaternion[T, Double, Q, QuaternionDouble]
class Number
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

protected def _acos(a: Double): Double
protected def _atan2(y: Double, x: Double): Double
protected def _ceil(a: Double): Double
protected def _cos(a: Double): Double
protected def _exp(a: Double): Double
protected def _floor(a: Double): Double
protected def _ln(a: Double): Double
protected def _pow(a: Double, b: Double): Double
protected def _sin(a: Double): Double
protected def _sqrt(a: Double): Double
protected def fdivide(a: Double, b: Double): Double
protected def fmul(a: Double, b: Double): Double
protected def promote(a: Double, b: Double, c: Double, d: Double): QuaternionDouble

Inherited methods

def *(that: Int): Q

Attributes

Inherited from:
Quaternion
def *(that: T): Q

Attributes

Inherited from:
Quaternion
def *(that: Q): Q

Attributes

Inherited from:
Quaternion
def +(that: Int): Q

Attributes

Inherited from:
Quaternion
def +(that: T): Q

Attributes

Inherited from:
Quaternion
def +(that: Q): Q

Attributes

Inherited from:
Quaternion
def -(that: Int): Q

Attributes

Inherited from:
Quaternion
def -(that: T): Q

Attributes

Inherited from:
Quaternion
def -(that: Quaternion[T, Double, Q, QuaternionDouble]): Q

Attributes

Inherited from:
Quaternion
def /(that: Int): Q

Attributes

Inherited from:
Quaternion
def /(that: T): Q

Attributes

Inherited from:
Quaternion
def /(that: Q): Q

Attributes

Inherited from:
Quaternion
def \(that: Double): QuaternionDouble

Attributes

Inherited from:
Quaternion
def ^(p: Double): QuaternionDouble

Attributes

Inherited from:
Quaternion
def ^(that: Q): QuaternionDouble

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion
def byteValue(): Byte

Attributes

Inherited from:
Number

Attributes

Inherited from:
Quaternion
def conj: Q

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion
override def equals(o: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Quaternion -> Any
Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion
override def hashCode: Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Quaternion -> Any
Inherited from:
Quaternion
def inverse: Q

Attributes

Inherited from:
Quaternion
def onef: Double

Attributes

Inherited from:
Quaternion
def onet: T

Attributes

Inherited from:
Quaternion
protected def promote(a: Double): QuaternionDouble

Attributes

Inherited from:
Quaternion
protected def quaternion(a: T): Q

Attributes

Inherited from:
Quaternion
def shortValue(): Short

Attributes

Inherited from:
Number

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion

Attributes

Inherited from:
Quaternion
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Quaternion -> Any
Inherited from:
Quaternion
def unary_-: Q

Attributes

Inherited from:
Quaternion
protected def unsup: Nothing

Attributes

Inherited from:
Quaternion
def zerof: Double

Attributes

Inherited from:
Quaternion
def zerot: T

Attributes

Inherited from:
Quaternion

Inherited and Abstract methods

def ^(e: BigInt): Q

Attributes

Inherited from:
Quaternion
def ^(e: Int): Q

Attributes

Inherited from:
Quaternion
protected def divide(a: T, b: T): T

Attributes

Inherited from:
Quaternion
def doubleValue(): Double

Attributes

Inherited from:
Number
def floatValue(): Float

Attributes

Inherited from:
Number
protected def fractional(a: T): Double

Attributes

Inherited from:
Quaternion
def i: Q

Attributes

Inherited from:
Quaternion
def intValue(): Int

Attributes

Inherited from:
Number
def longValue(): Long

Attributes

Inherited from:
Number
def one: Q

Attributes

Inherited from:
Quaternion
protected def promote: QuaternionDouble

Attributes

Inherited from:
Quaternion
protected def quaternion(a: T, b: T, c: T, e: T): Q

Attributes

Inherited from:
Quaternion
def zero: Q

Attributes

Inherited from:
Quaternion

Inherited fields

lazy val abs: Double

Attributes

Inherited from:
Quaternion
lazy val absv: Double

Attributes

Inherited from:
Quaternion
lazy val arg: Double

Attributes

Inherited from:
Quaternion
lazy val im: Q

Attributes

Inherited from:
Quaternion
lazy val ln: QuaternionDouble

Attributes

Inherited from:
Quaternion
lazy val norm: T

Attributes

Inherited from:
Quaternion
lazy val sgn: QuaternionDouble

Attributes

Inherited from:
Quaternion

Inherited and Abstract fields

val a: T

Attributes

Inherited from:
Quaternion
val b: T

Attributes

Inherited from:
Quaternion
val c: T

Attributes

Inherited from:
Quaternion
val d: T

Attributes

Inherited from:
Quaternion