27b_Assignment_5 - Assignment 5 - Mathematical Matrices...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 5 - Mathematical Matrices Select one option from the four below. All options are worth the same number of points. The more advanced options are provided for students who find the basic ones too easy and want more of a challenge. Make sure you have read and understand the Modules Information About Programming Assignments and Style Rules for Assignments before submitting this assignment. Hand in only one program, please. OPTION A (Basic): A 4x4 Matrix Class A Matrix is a 2-dimensional array of numbers. 4x4 Matrices are especially useful in computer animation and physics, because they represent motion transformations. Matrices can be added and subtracted, like this: Declare a class, Matrix , of 4x4 Matrices that have private data float[4][4] or double[4][4] ). There should be three constructors : 1. A default constructor that initializes the Matrix to the Identity (1's along the diagonal from upper left to lower right, 0s everywhere else); 2. One that takes a 4x4 array (ordinary 2-D array) of
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/21/2011 for the course CIS 27B taught by Professor Unknown during the Spring '07 term at Foothill College.

Page1 / 2

27b_Assignment_5 - Assignment 5 - Mathematical Matrices...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online