Package org.kalimullin.fsraytracer.geometry

Examples of org.kalimullin.fsraytracer.geometry.Point


    @Rule
    public ExpectedException expectedException = ExpectedException.none();

    @Test
    public void testParsingString() {
        assertEquals(new Ray(new Point(-1,-5,-6), new Point(2,5,7), 17), Ray.getRayFromString("17;-1,-5,-6;2,5,7"));
    }
View Full Code Here


                int id = ((Number)xpath.evaluate("id", pointNode, XPathConstants.NUMBER)).intValue();
                double x = ((Number)xpath.evaluate("x", pointNode, XPathConstants.NUMBER)).doubleValue();
                double y = ((Number)xpath.evaluate("y", pointNode, XPathConstants.NUMBER)).doubleValue();
                double z = ((Number)xpath.evaluate("z", pointNode, XPathConstants.NUMBER)).doubleValue();
                logger.trace("Point {}: ID={}, x={}, y={}, z={}", pointsIndex, id, x, y, z);
                Point point = new Point(x, y, z);
                pointMap.put(id, point);
                logger.debug("Added Point[{}]: {}", id, point);
            }
        } catch (XPathExpressionException e) {
            logger.error("Wrong XPath expression:", e);
View Full Code Here

TOP

Related Classes of org.kalimullin.fsraytracer.geometry.Point

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.