CPSC310A
Video Game Development

Activity 11

Scaling and Projection

Details

Add the following static methods to your matrix class:

  1. Matrix scale(float x, float y, float z)

  2. Matrix ortho(float left, float right, float bottom, float top, float nearVal, float farVal)

  3. Matrix perspective(float fovy, float aspect, float zNear, float zFar)

Submission

Please show your source code and run your program for the instructor.