Package com.aqpproject.tools

Examples of com.aqpproject.tools.Segment2D


                         * Body Creation
                         */
                        body.createFixture(shape, 0);
                        shape.dispose();

                        m_debugSegments.add(new Segment2D(new Vector2D(seg.getFirst()).translate((x) * 64, (y) * 64), new Vector2D(seg.getSecond()).translate((x) * 64, (y) * 64)));


                        m_mapBodies.add(body);
                    }

View Full Code Here


                        Element seg = (Element) e.getChildNodes().item(j);
                        int x1 = Integer.parseInt(seg.getAttribute("x1"));
                        int y1 = 64 - Integer.parseInt(seg.getAttribute("y1"));
                        int x2 = Integer.parseInt(seg.getAttribute("x2"));
                        int y2 = 64 - Integer.parseInt(seg.getAttribute("y2"));
                        m_segments.get(id).add(new Segment2D(x1, y1, x2, y2));
                    }
                }
            }

        }
View Full Code Here

                                b = toVector2D(vertices.get(0)).scale(PIXELS_PER_METERS);;
                            } else {
                                a = toVector2D(vertices.get(i)).scale(PIXELS_PER_METERS);;
                                b = toVector2D(vertices.get(i + 1)).scale(PIXELS_PER_METERS);;
                            }
                            result.add(new Segment2D(a, b));
                        }

                    }
                }
View Full Code Here

TOP

Related Classes of com.aqpproject.tools.Segment2D

Copyright © 2018 www.massapicom. 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.