graphics.raytracers.tracer.geometry
Class Vector3d

java.lang.Object
  extended by graphics.raytracers.tracer.geometry.Vector3d

public final class Vector3d
extends java.lang.Object


Constructor Summary
Vector3d()
           
Vector3d(double a, double b, double c)
           
Vector3d(Vector3d a)
           
 
Method Summary
static Vector3d add(Vector3d a, Vector3d b)
           
static Vector3d adds(double s, Vector3d a, Vector3d b)
           
static Vector3d comb(double a, Vector3d A, double b, Vector3d B)
           
static Vector3d cross(Vector3d a, Vector3d b)
           
static double dot(Vector3d a, Vector3d b)
           
 double getX()
           
 double getY()
           
 double getZ()
           
static Vector3d mult(Vector3d a, Vector3d b)
           
 void negate()
           
 double normalize()
           
 void scale(double t)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
static Vector3d sub(Vector3d a, Vector3d b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vector3d

public Vector3d(double a,
                double b,
                double c)

Vector3d

public Vector3d(Vector3d a)

Vector3d

public Vector3d()
Method Detail

add

public static Vector3d add(Vector3d a,
                           Vector3d b)

adds

public static Vector3d adds(double s,
                            Vector3d a,
                            Vector3d b)

sub

public static Vector3d sub(Vector3d a,
                           Vector3d b)

mult

public static Vector3d mult(Vector3d a,
                            Vector3d b)

cross

public static Vector3d cross(Vector3d a,
                             Vector3d b)

dot

public static double dot(Vector3d a,
                         Vector3d b)

comb

public static Vector3d comb(double a,
                            Vector3d A,
                            double b,
                            Vector3d B)

scale

public void scale(double t)

negate

public void negate()

normalize

public double normalize()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

getZ

public double getZ()

setZ

public void setZ(double z)