class VERTEXK




Public


Readable Attributes
attr sep:VERTEXC;
attr x,y,work:INT;
attr x,y,work:INT;
attr x,y,work:INT;

Writable Attributes
attr sep:VERTEXC;
attr x,y,work:INT;
attr x,y,work:INT;
attr x,y,work:INT;

Features
outer(o1, o2:SAME):INT
**** outer product (o1-self)x(o2-self)
end;
end;
clone:SAME
create(nx,ny:FLT):SAME
create(nx,ny:INT):SAME
create(nx,ny,nw:INT,c:VERTEXC):SAME
create(nx,ny:INT, nc:VERTEXC):SAME
create(nc:VERTEXC):SAME
create:SAME
end;
div(t:FLT):SAME
div(t:INT):SAME
inner(other:SAME):INT
**** inner product
minus(dx,dy:INT):SAME
minus(other:SAME):SAME
outer(other:SAME):INT
**** outer product
plus(dx,dy:INT)
plus(dx,dy:INT):SAME
plus(other:SAME)
plus(other:SAME):SAME
fx::=x.flt; fy::=y.flt; x:=(p*fx+q*fy).round.int; y:=(r*fx+s*fy).round.int;
end;
abs1:INT
end;
sameCoord(other:SAME):BOOL
times(t:FLT)
times(t:FLT):SAME
times(t:INT):SAME
times(other:SAME):INT
**** inner product
**** linear transformation with diagonal element (p,s).
end;
end;
end;
end;
rotation(p0,p1,p2:SAME):INT
**** orientation of points p1,p2,p3 around self.
return (x-other.x).abs+(y-other.y).abs;
end;

The Sather Home Page