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

  Create a program that draws a two-dimensional house

Create a program that draws a two-dimensional house seen from the front, the way a child would see it: with a door, two windows, and a roof with a chimney

  Draw a two-dimensional house seen from the front

Draw a two-dimensional house seen from the front, the way a child would: with a dor, two windows, and a roof with a chimney

  Write a program for a palindrome

Write a program for A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindromes with minimum number of character replacements..

  Grocery store program

This program draws upon several concepts that were covered in CptS 121 and should serve as a good refresher for CptS 122. Our store, Cougar Mart, maintains its inventory in a text file. Not being very tech savvy, the owner of Cougar Mart needs you to..

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Battleship redux

Game Battleship is back and better than ever. Instead of hacking everything together in C, you will instead leverage C++ and all of your newly gained object oriented programming knowledge to construct a much cleaner end product.

  Write a c++ program to calculate the gpa of 5 courses

Write a C++ program to calculate the Gpa of 5 courses. When users enter the grades and credits of the courses from the keyboard

  Create a function in c++ that subtracts two vectors

Create a function in c++ that subtracts two vectors. The function returns a vector than can also be negative.

  Where s is any string

Write a function detab(s, stop), where s is any string, and stop is a positive integer called tabstop size. This function should return a string which is like s.

  The stack-based routing scheme

the stack-based routing scheme you are to have a stack of maze locations.

  Write a program that declares three one dimensional

Write a program that declares three one dimensional arrays named miles, gallons, and mpg . Each array should be declared in main( ) and should be capable of holding ten double

  Function called timesten that returns back

Write a function called timesTen that returns back to the caller the value passed into the function multiplied by 10. If the value passed into the function is negative, the function also returns the string

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