Package mathvoyage

Class vmath.Vector

java.lang.Object
mathvoyage.vmath.Vector
Enclosing class:
vmath

public static class vmath.Vector extends Object
Contains functions to calculate vector operations
Author:
Adib Sakhawat
  • Constructor Details

    • Vector

      public Vector()
  • Method Details

    • add

      public static vector add(vector a, vector b)
      Add vector.
      Parameters:
      a - the a
      b - the b
      Returns:
      the vector
    • subtract

      public static vector subtract(vector a, vector b)
      Subtract vector.
      Parameters:
      a - the a
      b - the b
      Returns:
      the vector
    • scalerProduct

      public static double scalerProduct(vector a, vector b)
      Scaler product double.
      Parameters:
      a - the a
      b - the b
      Returns:
      the double
    • vectorProduct

      public static vector vectorProduct(vector a, vector b)
      Vector product vector.
      Parameters:
      a - the a
      b - the b
      Returns:
      the vector
    • multiply

      public static vector multiply(vector a, Matrix m)
      Multiply vector.
      Parameters:
      a - the a
      m - the m
      Returns:
      the vector
    • compare

      public static boolean compare(vector a, vector b)
      Compare boolean.
      Parameters:
      a - the a
      b - the b
      Returns:
      the boolean
    • magnitude

      public static double magnitude(vector a)
      Magnitude double.
      Parameters:
      a - the a
      Returns:
      the double
    • unitVector

      public static vector unitVector(vector a)
      Unit vector vector.
      Parameters:
      a - the a
      Returns:
      the vector