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 a small program to simulate a raffle

Write a small program to simulate a raffle (a gambling game) for a group with 100 members. You can simply identify each member with a no-duplicated ID numbers from 01 to 100. A number ticket with a positive 4-digits integer number will be randomly cr..

  Prepare a businesspartner

Prepare a BusinessPartner class that contains a company name, first name and a telephone number.

  Define a class for a type called fraction

Define a class for a type called Fraction. This class is used to represent a ratio of two integers. Include mutator functions that allow the user to set the numerator and the denominator.

  Implementation of data member counter of type int

Write the implementation (.cpp file) of Counter class. Here is the full specification of the class: A data member counter of type int.

  We have to deal with student pilots

We have to deal with student pilots and airplanes. Students have a unique student id, a name, and a year that students are in. Airplanes have a unique airplane id, model, a cruising range

  Write a function sum3darray

Write a function sum3DArray. This function will take a three dimensional array of ints and add all the entries in the three dimensional array. Assume columns and rank are two constants already defined.

  Use the top-down modular approach to design program

Use the top-down modular approach and pseudocode to design a suitable program to solve it. Where appropriate, use defensive programming techniques.

  Native method with deadlock detection and recovery

The naïve method with deadlock avoidance and the naïve method with deadlock detection and recovery - what will you measure and compare in order to determine the winner or which is better

  Write a menu-driven c program

Write a menu-driven C program with appropriate functions that allows the user to fill an array of 50 integers with random numbers on the range 1...999, inclusive, sort it, and then find search it to determine if a given random number was generated..

  A robot can take steps of 1 meter

A robot can take steps of 1 meter, 2 meters, or 3 meters. Write a recursive function to calculate the number of ways the robot can walk n meters. (n is an integer obtained from user.) As example:

  Finish or complete the coding for me because syntax and code

finish or complete the coding for me. because syntax  and codes, so the proram can execute correctly

  Undirected graph has scanning tree

undirected graph has scanning trees. The minimal scanning tree is the scanning tree with the minimal sum of weights on edges. The minimal scanning tree can be found by using Prim's algorithm

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