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 |
getClass, 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 -
getAdd
public Vector getAdd(Vector v)
sub
public void sub(Vector v)
- Parameters:
v -
getSub
public Vector getSub(Vector 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(org.eclipse.birt.chart.internal.computations.Matrix m)
- Parameters:
m -
getMultiply
public Vector getMultiply(org.eclipse.birt.chart.internal.computations.Matrix m)
- Parameters:
m -
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getNorm
public double getNorm()
getNormalized
public Vector getNormalized()
normalize
public void normalize()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2005-2008 Actuate Corp. All rights reserved.