All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class juice.example.RnVec

java.lang.Object
   |
   +----juice.example.RnVec

public class RnVec
extends Object
implements Vector
RnVec is a vector in a space of type RnSpc

See Also:
RnSpc, RnOp

Variable Index

 o data
 o space

Constructor Index

 o RnVec()
 o RnVec(int)
 o RnVec(int[])
 o RnVec(RnSpc)
 o RnVec(RnVec)
copy constructor

Method Index

 o add(Vector)
 o add(Vector, Vector)
 o addScale(float, Vector)
 o addScale(float, Vector, Vector)
 o copy()
 o copyFrom(Vector)
 o dot(Vector)
 o equals(Object)
Compares two Objects for equality.
 o fill(float)
 o getData()
 o getSpace()
 o getVal(int[])
 o neg()
 o neg(Vector)
 o norm()
 o norm2()
 o rand()
 o scale(float)
 o scale(float, Vector)
 o setVal(int[], float)
 o sub(Vector)
 o sub(Vector, Vector)
 o toString()
Returns a string representation of the object.
 o zero()

Variables

 o space
 protected RnSpc space
 o data
 protected float data[]

Constructors

 o RnVec
 protected RnVec()
 o RnVec
 public RnVec(RnSpc space)
 o RnVec
 public RnVec(int shape[])
 o RnVec
 public RnVec(int n1)
 o RnVec
 protected RnVec(RnVec src)
copy constructor

Methods

 o copy
 public JamObject copy()
 o equals
 public boolean equals(Object obj2)
Compares two Objects for equality.

Overrides:
equals in class Object
 o getData
 public float[] getData()
 o getSpace
 public Space getSpace()
 o neg
 public void neg()
 o neg
 public void neg(Vector vec2)
 o add
 public void add(Vector vec2)
 o add
 public void add(Vector vec1,
                 Vector vec2)
 o addScale
 public void addScale(float a,
                      Vector vec2)
 o addScale
 public void addScale(float a,
                      Vector vec1,
                      Vector vec2)
 o sub
 public void sub(Vector vec2)
 o sub
 public void sub(Vector vec1,
                 Vector vec2)
 o scale
 public void scale(float a)
 o scale
 public void scale(float a,
                   Vector vec)
 o copyFrom
 public void copyFrom(Vector src)
 o zero
 public void zero()
 o dot
 public float dot(Vector vec2)
 o norm2
 public float norm2()
 o norm
 public float norm()
 o getVal
 public float getVal(int index[])
 o setVal
 public void setVal(int index[],
                    float val)
 o fill
 public void fill(float a)
 o rand
 public void rand()
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index