Examples of X()


Examples of ca.eandb.jmist.framework.color.CIEXYZ.X()

   * @see ca.eandb.jmist.framework.color.ColorModel#fromRGB(double, double, double)
   */
  @Override
  public Spectrum fromRGB(double r, double g, double b) {
    CIEXYZ xyz = ColorUtil.convertRGB2XYZ(r, g, b);
    return new XYZColor(xyz.X(), xyz.Y(), xyz.Z(), null);
  }

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#fromXYZ(double, double, double)
   */
 
View Full Code Here

Examples of ca.eandb.jmist.framework.color.CIExyY.x()

    if (yWhiteSquared < Double.POSITIVE_INFINITY) {
      Y = Y * (1.0 + Y / yWhiteSquared) / (1.0 + Y);
    } else {
      Y = Y / (1.0 + Y);
    }
    return ColorUtil.convertxyY2XYZ(xyY.x(), xyY.y(), Y);
  }

}
View Full Code Here

Examples of ca.eandb.jmist.math.HPoint3.x()

  public static boolean isSameNode(PathNode a, PathNode b) {
    HPoint3 p = a.getPosition();
    HPoint3 q = b.getPosition();
    double epsilon = MathUtil.MACHINE_EPSILON;
    return (p.isPoint() == q.isPoint())
        && MathUtil.equal(p.x(), q.x(), epsilon)
        && MathUtil.equal(p.y(), q.y(), epsilon)
        && MathUtil.equal(p.z(), q.z(), epsilon);
  }

  private PathUtil() {}
View Full Code Here

Examples of ca.eandb.jmist.math.Point2.x()

      }
      Intersection x = rec.nearestIntersection();
      MinimalShadingContext ctx = new MinimalShadingContext(Random.DEFAULT);
      x.prepareShadingContext(ctx);
      Point2 uv = ctx.getUV();
      if (trim.opacity(new Point2(uv.x(), 1.0 - uv.y())) > 0.5) {
        recorder.record(x);
        if (!recorder.needAllIntersections()) {
          break;
        }
      }
View Full Code Here

Examples of ca.eandb.jmist.math.Point3.x()

    if (!sphere.isEmpty()) {
      double r = sphere.radius();
      Point3 c = sphere.center();

      if (this.isEmpty()) {
        minimumX = c.x() - r;
        minimumY = c.y() - r;
        minimumZ = c.z() - r;
        maximumX = c.x() + r;
        maximumY = c.y() + r;
        maximumZ = c.z() + r;
View Full Code Here

Examples of ca.eandb.jmist.math.Vector2.x()

    public Node(Point2 p, PathInfo pathInfo, double ru, double rv, double rj) {
      super(pathInfo, ru, rv, rj);
      this.pointOnImagePlane = p;

      Vector2 uv = RandomUtil.uniformOnDisc(apertureRadius, ru, rv).toCartesian();
      Point3 origin = new Point3(uv.x(), uv.y(), 0.0);
      Point3 focus = new Point3(
          (pointOnImagePlane.x() - 0.5) * objPlaneWidth,
          (0.5 - pointOnImagePlane.y()) * objPlaneHeight,
          -focusDistance);

View Full Code Here

Examples of ca.eandb.jmist.math.Vector3.x()

      cell = nextCell;

      double  tx, ty, tz, t;

      tx = (d.x() > 0.0) ? (dx - rx) / d.x() : -rx / d.x();
      ty = (d.y() > 0.0) ? (dy - ry) / d.y() : -ry / d.y();
      tz = (d.z() > 0.0) ? (dz - rz) / d.z() : -rz / d.z();

      if (tx < ty && tx < tz) {
        t = tx;
View Full Code Here

Examples of com.badlogic.gdx.graphics.glutils.ShapeRenderer.x()

        if (bone.parent == null) continue;
        float x = skeletonX + bone.data.length * bone.m00 + bone.worldX;
        float y = skeletonY + bone.data.length * bone.m10 + bone.worldY;
        shapes.line(skeletonX + bone.worldX, skeletonY + bone.worldY, x, y);
      }
      shapes.x(skeletonX, skeletonY, 4 * scale);
    }

    if (drawRegionAttachments) {
      shapes.setColor(attachmentLineColor);
      Array<Slot> slots = skeleton.getSlots();
View Full Code Here

Examples of com.calclab.emite.xep.dataforms.Form.x()

  }

  @Test
  public void parseSearchWithoutForm() {
    final Form form = parse(XEP_0055_2_1_SAMPLE_1);
    assertEquals(form.x(), NoPacket.INSTANCE);
  }

  @Test
  public void parseTitle() {
    final Form result1 = parse(XEP_0004_5_1_SAMPLE_2);
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCPoint.X()

    }

    switch(GeometryUtils.getType(geomref)) {
    case ST_POINT:
      OGCPoint pt = (OGCPoint)ogcGeometry;
      resultDouble.set(pt.X());
      return resultDouble;
    default:
      LogUtils.Log_InvalidType(LOG, GeometryUtils.OGCType.ST_POINT, GeometryUtils.getType(geomref));
      return null;
    }
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.