<< Chapter < Page | Chapter >> Page > |
This module contains review questions and answers keyed to the module titled GAME 2302-0115: Working with Column Matrices, Points, and Vectors .
The questions and the answers are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.
A method named equals is inherited from the Object class and overridden in several classes in the GM2D03 game-math library.
True or False?
The overridden equals method in the GM2D03.Point class returns a value of type double .
True or False?
It is not difficult to compare double and float values for absolute equality.
True or False?
The overridden equals method of the GM2D03.Point class compares two objects of type GM2D03.ColMatrix for equality.
True or False?
The difference between two points is a displacement vector.
True or False?
The getDisplacementVector method of the GM2D03.Point class computes the sums of the x and y components of the points that are stored in two column matrix objects.
True or False?
The getDisplacementVector method of the GM2D03.Point class returns a value of type GM2D03.ColMatrix .
True or False?
The displacement vector that is returned by the getDisplacementVector method of the GM2D03.Point class points from the Point object on which the method is called to the Point object passed as a parameter to the method.
True or False?
Kjell describes the component parts of the a displacement vector
True or False?
The add method of the GM2D03.ColMatrix class adds one ColMatrix object to another ColMatrix object, returning a ColMatrix object.
True or False?
The order in which you add column matrix objects has a significant impact on the result.
True or False?
The order in which two column matrix objects are subtracted doesn't matter. The result is the same either way.
True or False?
What is the meaning of the following two images?
This image was inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.
This image was also inserted for the purpose of inserting space between the questions and the answers.
False. As you should have learned from your studies of the Kjell tutorial, the order in which the two column matrix objectsare subtracted has a significant impact on the result.
False. As you should have learned from your studies of the Kjell tutorial, the order in which the two column matrix objects are addeddoesn't matter. The result is the same either way.
True
True
True
False. The getDisplacementVector method of the GM2D03.Point class returns a value of type GM2D03.Vector .
False. The getDisplacementVector method of the GM2D03.Point class computes the differences (subtraction) of the x and y components of the points that are stored in two column matrix objects.
True
True. In effect, this method actually compares two objects of the ColMatrix class by calling the equals method defined in the GM2D03.ColMatrix class. This is because the values that define a point are actually stored in a columnmatrix.
False. There is an inherent problem when comparing two double or float values for equality. If you perform a series of computations twice, using adifferent computational order for each set of computations, you are likely to end up with two values that are not absolutely equal even if they shouldbe equal. Arithmetic inaccuracies along the way may cause the two results to differever so slightly. However, they may be equal from a practical viewpoint.
False. The overridden equals method in the GM2D03.Point class returns a value of type boolean .
True
This section contains a variety of miscellaneous information.
Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.
I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.
In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.
Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.
-end-
Notification Switch
Would you like to follow the 'Game 2302 - mathematical applications for game development' conversation and receive update notifications?