Calculate the plane coefficients

Assignment Help C/C++ Programming
Reference no: EM13312663

1.       Calculate the plane coefficients (A,B,C and D)  of 3 points in a plane defined by P1, P2 and P3, and determine if the point P4 is behind or in front of the polygon surface contained within that plane:

P1 = (10,-20,40);
P2 = (30,3,18);
P3 = (-5,-10,25);
P4 = (-10,12,-19);

Be sure to show your work. Explain why determining if Point P4 is behind or in front of the polygon surface relevant to computer graphics applications.

2.       Given the following Shape, use the odd even rule to determine if points a,b,c,d are inside or outside of the object.

      

549_CMSC405.png

Be sure to describe your method and show your "arrows" as needed.

3.       Using Visual C++ and your OpenGL configured environment, write an application that displays a "unique" graphical scene that you designed and coded for this course. What you put in your graphical scene is up to you. But it needs to be displayed in a 800 x 600 window and include multiple shapes and include multiple text elements. You need to use Graphic output primitives as discussed in class up till this point. For example, you could create a 2D house with windows, a door and a chimney and label your house "My Dream home". You could also generate a scene with animals, fish, flowers or other objects you want to create based on the primitives. I recommend you use "Graph" paper or a model of some type as your design to make it easier to set your coordinates. Have fun and be creative.

Deliverables:

You should submit a word document that includes the results for the first 2 questions of this assignment along with a screen capture of the output of you running your Visual C++ code. You should also submit your C++ source code and header file. You should name your word assignment "yournamehw2.doc" (or .docx).  You should name your C++ source code yournamehw2.cpp. Be sure to submit your homework in the WebTycho assignments folder no later than the due date listed in the syllabus.

Reference no: EM13312663

Questions Cloud

What was the initial direction of the ball : A player passes a basketball to another player who catches it at the same level from which it was thrown. The initial speed of the ball is 8.1 m/s, What was the initial direction of the ball
Explain how many kilograms of chalcopyrite must be mined : How many kilograms of chalcopyrite must be mined to obtain 320.g of pure \rm Cu? Express your answer to three significant figures and include the appropriate units.
What can be concluded about the work load for the worker : At the morning break, an industrial engineer quickly measures the worker's heart rate and finds a peak value of 110 beats/min one minute after stopping work and a value of 95 beats/min three minutes after stopping work.
Find the initial speed at which the lava bomb got launched : A lava bomb is a missile composed of cooling, practicallysolid lava. You are a geologist, watching a volcano launch a lava bomb straight upward. find the Initial Speed at which the lava bomb got launched
Calculate the plane coefficients : Calculate the plane coefficients (A,B,C and D)  of 3 points in a plane defined by P1, P2 and P3, and determine if the point P4 is behind or in front of the polygon surface contained within that plane.
Define wavelengths does not correspond to a wavelength : For the series of spectral lines of atomic hydrogen with n1 = 3, which of the following wavelengths does not correspond to a wavelength predicted by the Rydberg equation? Rydberg equation: 1/? = (1.097 x 107 m-1) x (1/n12 - 1/n22) ----- A. 1875 nm..
Determine the volume of irrigation water needed in ac-ft : A certain crop has a consumptive use requirement of 1.2 ac-ft of water per acre of crop land. The crop is planted on 780 acres of land. Precipitation falling during the growing season is 3.2 inches.
What can we learn about management : What can we learn about management today from examining its historical foundations?
Determine the angle of the incline : The block in the figure below has a mass of 5.7 kg and it rests on an incline of angle %u03B8. determine the angle of the incline

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write c++ program to create a bar chart showing the average

Write a c++ program to create a bar chart showing the average monthly mean temperature for College Station from 2004 to 2013.

  Randominrange() function that accepts two integer

Write a randomInRange() function that accepts two integer parameters. The parameters will represent the low number and the high number (both inclusive) in the random range. For example, when the function receives 3 and 8.

  The reverse of each word, and a palindrome checker

give us the first letter of each word, the first half of each word, the reverse of each word, and a palindrome checker to see if the word is a palindrome.

  Write a c program that reads in five numbers

Q1. (Bar Chart /Histogram printing) Write a C program that reads in five numbers (each between 1 and 30). For each number read, your program should print a line containing that number of adjacent asterisks. For example, if your program reads the numb..

  Called cbankaccount

Create a base class, called CBankAccount, and two additional classes (each derived from CBankAccount), called CSavingsAccount and CCheckingAccount.

  Create a program, using at least one for loop

Create a program, using at least one For loop, that displays the Sales Amounts made in each of 4 regions (North, South, East, and West) during a three month period.

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Computer programming using c language lab

Computer programming using c language lab

  Techniques for information hiding and encapsulation

What techniques did you utilize for information hiding and encapsulation? Are there any improvements you would make? If so, what would they be?

  Same birthday

How likely is it that two people in one section of our class (40 students) have the same birthday ?

  Local diner that allows customers to see the diner''s menu

Design a program to be used for a small local diner that allows customers to see the diner's menu and then make their meal selections using the program.The program will also calculate and print an itemized bill.

  A linked list of your song structure in cd

The CD object should have a data member that is a linked list of your song structure that you have in CD.  The CD class needs a function that allows it to add a song to the object, that function would then append the song to that instance of the link..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd