Advertisement
Luninariel

289 - Rotation Matrix

Apr 8th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. //
  2. //  RotationMatrix.java
  3. //  Easel
  4. //
  5. //  Created by Philip Rhodes on 7/28/05.
  6. //  Copyright 2005 __MyCompanyName__. All rights reserved.
  7. //
  8.  
  9. /** Abstract parent class of all rotation matrices. */
  10. public abstract class RotationMatrix extends Matrix {
  11.  
  12.    /** All rotation matrices should support this method, which
  13.     *  sets the angle of rotation. The angle is expressed in radians
  14.     */
  15.    public abstract void setAngle(double theta);
  16.    
  17.    /** Calling this method on a rotation matrix is dangerous, since the
  18.     *  result may no longer be a rotation matrix.
  19.     */
  20.    public void copy(Matrix m){
  21.    
  22.       System.out.println("RotationMatrix.java: copy(Matrix) can only be called on a generic Matrix.");
  23.       System.exit(1);  
  24.    }  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement