Home Fundamentals of Math and Physics for Game Programmers (Stahler) Chapter 4 Web Practice Projects

# Web Practice Projects

This activity contains 5 questions.

## A. Writing a Program to Convert Vectors Between Polar and Cartesian Coordinates Write a simple program that will convert vectors between polar and Cartesian coordinates.

 To create paragraphs in your essay response, type

at the beginning of the paragraph, and

at the end.

## B. Creating Vector Math Questions Create a set of vector math questions (including vector addition/subtraction, scalar vector, dot product, and cross product), and use the matrix vortex in the visualization experience to calculate the solutions.

 To create paragraphs in your essay response, type

at the beginning of the paragraph, and

at the end.

## C. Create Vector Math Functions Create your own library of vector math functions including vector addition/subtraction, scalar vector, dot product, and cross product.

 To create paragraphs in your essay response, type

at the beginning of the paragraph, and

at the end.

## D. Writing a Program to Normalize Vectors Write a simple program that will normalize vectors.

 To create paragraphs in your essay response, type

at the beginning of the paragraph, and

at the end.

## E. Writing a Program to Ask for Two Vectors 1. Write a simple program that will ask for two vectors that define a surface and return the surface normal. 2. Write a simple program that will ask for two vectors and return the angle between them.

 To create paragraphs in your essay response, type

at the beginning of the paragraph, and

at the end.