Examples of pointAlong()


Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

    public void run( IProgressMonitor monitor ) throws Exception {

        display.addMouseListener(mouseListener);

        LineSegment l = new LineSegment(start, end);
        start = l.pointAlong(0.1);
        end = l.pointAlong(0.9);
        l = new LineSegment(start, end);

        Coordinate tmp = l.pointAlong(0.9);
        double distance = end.distance(tmp);
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

        display.addMouseListener(mouseListener);

        LineSegment l = new LineSegment(start, end);
        start = l.pointAlong(0.1);
        end = l.pointAlong(0.9);
        l = new LineSegment(start, end);

        Coordinate tmp = l.pointAlong(0.9);
        double distance = end.distance(tmp);
        Coordinate left = l.pointAlongOffset(0.5, distance / 2);
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

        LineSegment l = new LineSegment(start, end);
        start = l.pointAlong(0.1);
        end = l.pointAlong(0.9);
        l = new LineSegment(start, end);

        Coordinate tmp = l.pointAlong(0.9);
        double distance = end.distance(tmp);
        Coordinate left = l.pointAlongOffset(0.5, distance / 2);
        Coordinate right = l.pointAlongOffset(0.5, -distance / 2);

        validArea = new Rectangle((int) start.x, (int) start.y, (int) (start.x + (end.x - start.x)),
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                        return line.getCoordinate(1);
                    }

                    if (len > mid) {
                        // we have gone past midpoint
                        return line.pointAlong(1 - ((len - mid) / line
                                .getLength()));
                    }
                }

                // should never get there
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                    return line.getCoordinate(1);
                }

                if (len > mid) {
                    // we have gone past midpoint
                    return line.pointAlong(1 - ((len - mid) / line
                                .getLength()));
                }
            }

            // should never get there
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                    return line.getCoordinate(1);
                }

                if (len > mid) {
                    // we have gone past midpoint
                    return line.pointAlong(1 - ((len - mid) / line
                                .getLength()));
                }
            }

            // should never get there
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                        return line.getCoordinate(1);
                    }

                    if (len > mid) {
                        // we have gone past midpoint
                        return line.pointAlong(1 - ((len - mid) / line.getLength()));
                    }
                }

                // should never get there
                return g.getCentroid().getCoordinate();
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                        return line.getCoordinate(1);
                    }

                    if (len > mid) {
                        // we have gone past midpoint
                        return line.pointAlong(1 - ((len - mid) / line
                                .getLength()));
                    }
                }

                // should never get there
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                GL11.glColor3f(.2f,.4f,.6f);
              }else{
                GL11.glColor3f(.5f,.4f,.3f);
              }
              WallSection ws = wc.wall.children.get(k);
              Coordinate wsp0 = line.pointAlong(curPosWall/wallLength);
              curPosWall += ws.length;
              Coordinate wsp1 = line.pointAlong(curPosWall/wallLength);
              wsp1.z = 0;
              wsp0.z = 0;
              GL11.glVertex3d(wsp0.x-offset.x,wsp0.y-offset.y,wsp0.z+height-offset.z);
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineSegment.pointAlong()

                GL11.glColor3f(.5f,.4f,.3f);
              }
              WallSection ws = wc.wall.children.get(k);
              Coordinate wsp0 = line.pointAlong(curPosWall/wallLength);
              curPosWall += ws.length;
              Coordinate wsp1 = line.pointAlong(curPosWall/wallLength);
              wsp1.z = 0;
              wsp0.z = 0;
              GL11.glVertex3d(wsp0.x-offset.x,wsp0.y-offset.y,wsp0.z+height-offset.z);
              GL11.glVertex3d(wsp1.x-offset.x,wsp1.y-offset.y,wsp1.z+height-offset.z);
              GL11.glVertex3d(wsp1.x-offset.x,wsp1.y-offset.y,wsp1.z+height-floor.height-offset.z);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.