code: public static Matrix4x4D orthographicProjectionRH(
      final double x_min,
      final double x_max,
      final double y_min,
      final double y_max,
      final double z_near,
      final double z_far)
    {
      final double rml = x_max - x_min;
      final double rpl = x_max + x_min;
      final double tmb = y_max - y_min;
      final double tpb = y_max + y_min;
      final double fmn = z_far - z_near;
      final double fpn = z_far + z_near;
  
      final double r0c0 = 2.0 / rml;
      final double r0c3 = -(rpl / rml);
      final double r1c1 = 2.0 / tmb;
      final double r1c3 = -(tpb / tmb);
      final double r2c2 = -2.0 / fmn;
      final double r2c3 = -(fpn / fmn);
  
      return Matrix4x4D.of(
        r0c0, 0.0, 0.0, r0c3,
        0.0, r1c1, 0.0, r1c3,
        0.0, 0.0, r2c2, r2c3,
        0.0, 0.0, 0.0, 1.0);
    }
docs: <p>Calculate a projection matrix that produces an orthographic projection
  based on the given clipping plane coordinates.</p>
  
  <p>The function assumes a right-handed coordinate system.</p>
  
  @param x_min  The left clipping plane coordinate
  @param x_max  The right clipping plane coordinate
  @param y_min  The bottom clipping plane coordinate
  @param y_max  The top clipping plane coordinate
  @param z_near The near clipping plane coordinate
  @param z_far  The far clipping plane coordinate
  
  @return An orthographic projection matrix