calc
Class VektorOps

java.lang.Object
  extended by calc.VektorOps

public class VektorOps
extends java.lang.Object

Collection of standard vector operations. These operations are defined as static functions. Not so usual functions are defined in MoreVektorOps.


Constructor Summary
VektorOps()
           
 
Method Summary
static Vektor addition(Vektor a, Vektor b)
          Addition of two vectors.
static Vektor addition(Vektor a, Vektor b, Vektor d)
          Addition of three vectors.
static Vektor addition(Vektor a, Vektor b, Vektor d, Vektor f)
          Addition of four vectors.
static Vektor addition(Vektor a, Vektor b, Vektor d, Vektor f, Vektor g)
          Addition of five vectors.
static Vektor addition(Vektor a, Vektor b, Vektor d, Vektor f, Vektor g, Vektor h)
          Addition of six vectors.
static Vektor cmulti(Vektor a, double c)
          Multiplication of a Vector and a constant.
static Vektor crossproduct(Vektor a, Vektor b)
          Crossproduct of two vectors.
static Vektor negative(Vektor a)
          Reverses the direction of the Vector.
static double scalarproduct(Vektor a, Vektor b)
          Inner product.
static Vektor solvelinearCramer(Vektor A1, Vektor A2, Vektor A3, Vektor b)
           
static double spatproduct(Vektor a, Vektor b, Vektor c)
          Spatproduct.
static Vektor subtraktion(Vektor a, Vektor b)
          Subtraction of the Vectors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VektorOps

public VektorOps()
Method Detail

addition

public static Vektor addition(Vektor a,
                              Vektor b)
Addition of two vectors.

Parameters:
a - Vector a
b - Vector b
Returns:
resulting Vector a+b

scalarproduct

public static double scalarproduct(Vektor a,
                                   Vektor b)
Inner product.

Parameters:
a - Vector a
b - Vector b
Returns:
Inner Product (a scalar, not a vector) a.b = a_x*b_x + a_y*b_y + a_z*b_z

crossproduct

public static Vektor crossproduct(Vektor a,
                                  Vektor b)
Crossproduct of two vectors.

Parameters:
a - Vector a
b - Vector b
Returns:
Resultung vector (a x b) = - (b x a)

spatproduct

public static double spatproduct(Vektor a,
                                 Vektor b,
                                 Vektor c)
Spatproduct. Gives the volume between the three vectors.

Parameters:
a - Vector a
b - Vector b
c - Vector c
Returns:
resultung scalar by a.(b x c)

cmulti

public static Vektor cmulti(Vektor a,
                            double c)
Multiplication of a Vector and a constant.

Parameters:
a - Vektor a
c - Constant c
Returns:
Vektor, with every coordinate multiplicated with the constant

negative

public static Vektor negative(Vektor a)
Reverses the direction of the Vector. The same as cmulti(a,-1).

Parameters:
a - Vektor a
Returns:
Vektor -a

addition

public static Vektor addition(Vektor a,
                              Vektor b,
                              Vektor d)
Addition of three vectors.

Parameters:
a - Vector a
b - Vector b
d - Vector d
Returns:
Vector (a + b + d)

subtraktion

public static Vektor subtraktion(Vektor a,
                                 Vektor b)
Subtraction of the Vectors. The path from the top of b to the top of a

Parameters:
a - Vector a
b - Vector b
Returns:
Vector resulting the operation a - b

addition

public static Vektor addition(Vektor a,
                              Vektor b,
                              Vektor d,
                              Vektor f)
Addition of four vectors.

Parameters:
a - Vector a
b - Vector b
d - Vector d
f - Vector f
Returns:
Vector (a + b + d + f)

addition

public static Vektor addition(Vektor a,
                              Vektor b,
                              Vektor d,
                              Vektor f,
                              Vektor g)
Addition of five vectors.

Parameters:
a - Vector a
b - Vector b
d - Vector d
f - Vector f
g - Vector g
Returns:
Vector (a + b + d + f + g)

addition

public static Vektor addition(Vektor a,
                              Vektor b,
                              Vektor d,
                              Vektor f,
                              Vektor g,
                              Vektor h)
Addition of six vectors.

Parameters:
a - Vector a
b - Vector b
d - Vector d
f - Vector f
g - Vector g
h - Vector h
Returns:
Vector (a + b + d + f + g + h)

solvelinearCramer

public static Vektor solvelinearCramer(Vektor A1,
                                       Vektor A2,
                                       Vektor A3,
                                       Vektor b)