All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class berkeley.cs.dmc.rapid2d.Vec2D

java.lang.Object
   |
   +----berkeley.cs.dmc.rapid2d.Vec2D

public final class Vec2D
extends Object

Variable Index

 o x
 o y

Constructor Index

 o Vec2D()
 o Vec2D(float, float)
 o Vec2D(Vec2D)

Method Index

 o add(Vec2D, Vec2D)
 o comp(int)
 o mul(Mat2D, Vec2D)
 o mul(Vec2D, Vec2D)
 o mulT(Mat2D, Vec2D)
 o scale(Vec2D, float)
 o set(float, float)
 o sub(Vec2D, Vec2D)
 o toString()
 o zero()

Variables

 o x
 public float x
 o y
 public float y

Constructors

 o Vec2D
 public Vec2D()
 o Vec2D
 public Vec2D(Vec2D v)
 o Vec2D
 public Vec2D(float a,
              float b)

Methods

 o set
 public final void set(float x,
                       float y)
 o zero
 public final void zero()
 o comp
 public final float comp(int i)
 o add
 public final void add(Vec2D a,
                       Vec2D b)
 o sub
 public final void sub(Vec2D a,
                       Vec2D b)
 o mul
 public final void mul(Vec2D a,
                       Vec2D b)
 o scale
 public final void scale(Vec2D a,
                         float s)
 o mul
 public final void mul(Mat2D m,
                       Vec2D v)
 o mulT
 public final void mulT(Mat2D m,
                        Vec2D v)
 o toString
 public final String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index