Uses of Class
org.pathvisio.libgpml.util.LinAlg.Point
| Package | Description |
|---|---|
| org.pathvisio.libgpml.util |
Utility classes
|
-
Uses of LinAlg.Point in org.pathvisio.libgpml.util
Methods in org.pathvisio.libgpml.util that return LinAlg.Point Modifier and Type Method Description LinAlg.PointLinAlg.Point. add(LinAlg.Point p)LinAlg.PointLinAlg.Point. clone()LinAlg.PointLinAlg.Point. multiply(double d)LinAlg.PointLinAlg.Point. norm()static LinAlg.PointLinAlg. project(LinAlg.Point p1, LinAlg.Point p2)Projection of p1 on p2: p1.p2 ----- .static LinAlg.PointLinAlg. project(LinAlg.Point p, LinAlg.Point q, LinAlg.Point v)Projection of point q on a line through p with direction vector v If p is 0,0, it's the same as the two-argument function with the same name.static LinAlg.PointLinAlg. rotate(LinAlg.Point p, double angle)LinAlg.PointLinAlg.Point. subtract(LinAlg.Point p)Methods in org.pathvisio.libgpml.util with parameters of type LinAlg.Point Modifier and Type Method Description LinAlg.PointLinAlg.Point. add(LinAlg.Point p)static doubleLinAlg. angle(LinAlg.Point p1, LinAlg.Point p2)Determines angle between two vectors defined by p1 and p2 Both vectors start at 0.0static doubleLinAlg. direction(LinAlg.Point p1, LinAlg.Point p2)negative: ccw positive: cwstatic doubleLinAlg. distance(LinAlg.Point p1, LinAlg.Point p2)private static doubleLinAlg. dot(LinAlg.Point v1, LinAlg.Point v2)static LinAlg.PointLinAlg. project(LinAlg.Point p1, LinAlg.Point p2)Projection of p1 on p2: p1.p2 ----- .static LinAlg.PointLinAlg. project(LinAlg.Point p, LinAlg.Point q, LinAlg.Point v)Projection of point q on a line through p with direction vector v If p is 0,0, it's the same as the two-argument function with the same name.static LinAlg.PointLinAlg. rotate(LinAlg.Point p, double angle)LinAlg.PointLinAlg.Point. subtract(LinAlg.Point p)static doubleLinAlg. toLineCoordinates(LinAlg.Point start, LinAlg.Point end, LinAlg.Point p)Convert a 2-D point to 1-D line coordinates (relative position on the line, range {0,1})