Module omix.api

Class AbstractDoubleVec<T extends AbstractDoubleVec<T>>

java.lang.Object
omix.util.math.vector.AbstractVec<T>
omix.util.math.vector.AbstractDoubleVec<T>
Type Parameters:
T - data type of the vector itself
Direct Known Subclasses:
Vec2d, Vec4d

public abstract class AbstractDoubleVec<T extends AbstractDoubleVec<T>>
extends AbstractVec<T>
Describes a vector in N dimensional space with double precision.
Author:
Dr. Peter Droste, Omix Visualization
  • Constructor Details

  • Method Details

    • dot

      public abstract double dot​(T multiplicator)
      Scalar product
      Parameters:
      multiplicator -
      Returns:
      this⋅multiplicator
    • getLength

      public abstract double getLength()
      Length of the vector
      Returns:
      |this|
    • getAngle

      public abstract double getAngle​(T vec)
      Computes the angle between two vectors.
      Parameters:
      vec -
      Returns:
      angle in radians
    • dot

      public abstract T dot​(double m)
      Scaling
      Parameters:
      m -
      Returns:
      this⋅m