jjdh.java.math
Class Vector3D
java.lang.Object
jjdh.java.math.Point3D
jjdh.java.math.Vector3D
public class Vector3D
- extends Point3D
Methods inherited from class jjdh.java.math.Point3D |
equals, equals, equals, getData, getDistance, getX, getY, getZ, hashCode, toSloppyIntBits, toString |
Vector3D
public Vector3D()
Vector3D
public Vector3D(Point3D from,
Point3D to)
Vector3D
public Vector3D(float... coord)
Vector3D
public Vector3D(Point3D vector3D)
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)
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.