org.eclipse.birt.chart.computation
Class Vector
java.lang.Object
org.eclipse.birt.chart.computation.Vector
- public class Vector
- extends java.lang.Object
A Vector class used to perform 3D computation.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Vector
public Vector()
- The default constructor. This makes an origin point.
Vector
public Vector(Location3D start,
Location3D end)
- Parameters:
start - end -
Vector
public Vector(Vector v)
- Parameters:
v -
Vector
public Vector(Location3D loc)
- Parameters:
loc -
Vector
public Vector(double x,
double y,
double z)
- Parameters:
x - y - z -
Vector
public Vector(double x,
double y,
double z,
boolean isPoint)
- Parameters:
x - y - z - isPoint -
set
public void set(double x,
double y,
double z,
boolean isPoint)
- Parameters:
x - y - z - isPoint -
set
public void set(double x,
double y,
double z)
- Parameters:
x - y - z -
get
public double get(int i)
- Parameters:
i -
- Returns:
add
public void add(Vector v)
- Parameters:
v -
sub
public void sub(Vector v)
- Parameters:
v -
scale
public void scale(double f)
- Parameters:
f -
perspective
public void perspective(double distance)
- Parameters:
distance -
isPoint
public boolean isPoint()
- Returns:
crossProduct
public Vector crossProduct(Vector v)
- Parameters:
v -
- Returns:
scalarProduct
public double scalarProduct(Vector v)
- Parameters:
v -
- Returns:
cosineValue
public double cosineValue(Vector v)
- Parameters:
v -
- Returns:
rotate
public void rotate(Angle3D angle)
- Parameters:
angle -
project
public void project(int dist)
- Parameters:
dist -
inverse
public void inverse()
- Returns the inverse direction of this vector.
multiply
public void multiply(Matrix m)
- Parameters:
m -
getMultiply
public Vector getMultiply(Matrix m)
- Parameters:
m -
- Returns:
toString
public java.lang.String toString()
Copyright © 2005 Actuate Corp. All rights reserved.