Examples of angle()


Examples of org.thechiselgroup.choosel.protovis.client.PVFillPartitionLayout.PVRadialNode.angle()

        }).strokeStyle("#fff").lineWidth(.5);

        partition.label().add(PV.Label).visible(new JsBooleanFunction() {
            public boolean f(JsArgs args) {
                PVRadialNode d = args.getObject();
                return d.angle() * d.outerRadius() >= 6;
            }
        });

        /* capture pan & zoom events on main panel */
        getPVPanel().events(PV.Events.ALL)
View Full Code Here

Examples of vazkii.botania.common.core.helper.Vector3.angle()

        if(prev != null) {
          Vector3 prevdiffnorm = prev.diff.copy().normalize();
          Vector3 thisdiffnorm = diff.copy().normalize();

          prevdiff = thisdiffnorm.copy().add(prevdiffnorm).normalize();
          sinprev = (float) Math.sin(thisdiffnorm.angle(prevdiffnorm.multiply(-1)) / 2);
        } else {
          prevdiff = diff.copy().normalize();
          sinprev = 1;
        }
View Full Code Here

Examples of vazkii.botania.common.core.helper.Vector3.angle()

        if(next != null) {
          Vector3 nextdiffnorm = next.diff.copy().normalize();
          Vector3 thisdiffnorm = diff.copy().normalize();

          nextdiff = thisdiffnorm.add(nextdiffnorm).normalize();
          sinnext = (float) Math.sin(thisdiffnorm.angle(nextdiffnorm.multiply(-1)) / 2);
        } else {
          nextdiff = diff.copy().normalize();
          sinnext = 1;
        }
      }
View Full Code Here

Examples of vazkii.botania.common.core.helper.Vector3.angle()

      blockVec = new Vector3(axis.minX + (axis.maxX - axis.minX) / 2, axis.minY + (axis.maxY - axis.minY) / 2, axis.minZ + (axis.maxZ - axis.minZ) / 2);

    Vector3 diffVec =  blockVec.copy().sub(thisVec);
    Vector3 diffVec2D = new Vector3(diffVec.x, diffVec.z, 0);
    Vector3 rotVec = new Vector3(0, 1, 0);
    double angle = rotVec.angle(diffVec2D) / Math.PI * 180.0;

    if(blockVec.x < thisVec.x)
      angle = -angle;

    rotationX = (float) angle + 90;
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.