-
+package voronoi;
/**
* Vector Routines from CMU vision library.
float norm;
public Vec2() {}
-
+
public Vec2(float xx, float yy)
{
x = xx;
{
return norm;
}
-
+
public void setNorm(float d)
{
norm = d;
Vec2 sub(Vec2 v)
{
- return(new Vec2((float)(x - v.x), (float)(y - v.y)));
+ return(new Vec2((float)(x - v.x), (float)(y - v.y)));
}
-/* V2_magn: magnitude of vector */
+ /* V2_magn: magnitude of vector */
float magn()
{
}
-
+