Module omix.api

Class AbstractFloatVec<T extends AbstractFloatVec<T>>

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

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

  • Method Details

    • dot

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

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

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

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