jjdh API

jjdh.java.math
Class Vector3D

java.lang.Object
  extended by jjdh.java.math.Point3D
      extended by jjdh.java.math.Vector3D

public class Vector3D
extends Point3D


Field Summary
 
Fields inherited from class jjdh.java.math.Point3D
data, Distance
 
Constructor Summary
Vector3D()
           
Vector3D(float... coord)
           
Vector3D(Point3D vector3D)
           
Vector3D(Point3D from, Point3D to)
           
 
Method Summary
 Vector3D add(Vector3D other)
           
 Vector3D clone()
           
 Vector3D crossProduct(Vector3D other)
           
 Vector3D getCrossProduct(Vector3D other)
           
 float getLength()
           
 Vector3D getNormal()
           
static Vector3D getNormal(Point3D v1, Point3D v2, Point3D v3)
           
 Vector3D getProduct(float scalar)
           
 float getScalarProduct(Vector3D v)
           
 Vector3D getSum(Vector3D other)
           
 Vector3D multiply(float scalar)
           
 Vector3D multScale(Vector3D v)
           
 Vector3D normalize()
           
 
Methods inherited from class jjdh.java.math.Point3D
equals, equals, equals, getData, getDistance, getX, getY, getZ, hashCode, toSloppyIntBits, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vector3D

public Vector3D()

Vector3D

public Vector3D(Point3D from,
                Point3D to)

Vector3D

public Vector3D(float... coord)

Vector3D

public Vector3D(Point3D vector3D)
Method Detail

clone

public Vector3D clone()
Overrides:
clone in class Object

getLength

public float getLength()

getSum

public Vector3D getSum(Vector3D other)

add

public Vector3D add(Vector3D other)

crossProduct

public Vector3D crossProduct(Vector3D other)

getCrossProduct

public Vector3D getCrossProduct(Vector3D other)

getScalarProduct

public float getScalarProduct(Vector3D v)

getProduct

public Vector3D getProduct(float scalar)

multiply

public Vector3D multiply(float scalar)

multScale

public Vector3D multScale(Vector3D v)

getNormal

public Vector3D getNormal()

normalize

public Vector3D normalize()

getNormal

public static Vector3D getNormal(Point3D v1,
                                 Point3D v2,
                                 Point3D v3)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.