Examples of Point3f


Examples of javax.vecmath.Point3f

  public Point3f ptValue(ScriptVariable x, boolean allowFloat)
      throws ScriptException {
    Object pt;
    if (isSyntaxCheck)
      return new Point3f();
    switch (x.tok) {
    case Token.point3f:
      return (Point3f) x.value;
    case Token.bitset:
      return (Point3f) eval
          .getBitsetProperty(ScriptVariable.bsSelect(x), Token.xyz, null, null,
              x.value, null, false, Integer.MAX_VALUE, false);
    case Token.string:
      pt = Escape.unescapePoint(ScriptVariable.sValue(x));
      if (pt instanceof Point3f)
        return (Point3f) pt;
      break;
    case Token.varray:
      pt = Escape.unescapePoint("{" + ScriptVariable.sValue(x) + "}");
      if (pt instanceof Point3f)
        return (Point3f) pt;
      break;
    }
    if (!allowFloat)
      return null;
    float f = ScriptVariable.fValue(x);
    return new Point3f(f, f, f);
  }
View Full Code Here

Examples of org.openmali.vecmath2.Point3f

        hud.getContentPane().addWidget(label, 10f, 10f);
       
        /*
         * GFX
         */
        env.getView().lookAt(new Point3f(5f, 5f, 5f), new Point3f(), new Point3f(0f, 0f, 1f));
        group = env.addPerspectiveBranch().getBranchGroup();
        group.addChild(new PointLight(1f, 1f, 1f, 10f, 10f, 45f, .001f));
       
        this.setStopOperation(RenderLoop.StopOperation.DESTROY_AND_EXIT);
        this.begin();
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.