Package javax.vecmath

Examples of javax.vecmath.Point2f.sub()


            Point2f v0 = el.getNode(0).getPoint2f();
            Point2f v1 = el.getNode(1).getPoint2f();
            Point2f v2 = el.getNode(2).getPoint2f();
           
            v1.sub(v0); // from node 0 to 1
            v2.sub(v0); // from node 0 to 2
           
            float cross = v1.x*v2.y - v1.y*v2.x;
           
            if(cross < 0){
                el.reorient();
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.