Package toxi.geom

Examples of toxi.geom.Vec2D.rotate()


        }
        if (type == Type.END || type == Type.BOTH) {
            Vec2D dir = b.sub(a).rotate(MathUtils.PI - theta)
                    .normalizeTo(length);
            gfx.line(b, b.add(dir));
            dir.rotate(theta * 2);
            gfx.line(b, b.add(dir));
        }
    }

}
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.