Example #1
0
 final Camera3D replicateAddShift(Triplex shift) {
   return new Camera3D(Triplex.add(this.position, shift), this.rotation);
 }
Example #2
0
  /**
   * Constructs a 4x4 matrix representing the complete transform from real world coordinates to
   * screen space coordinates.
   */
  Matrix toProjectionMatrix() {
    Matrix transform = Matrix.create4x4(position.negate(), rotation);

    Matrix result = Matrix.multiply(createProjectionMatrix(), transform);
    return result;
  }