How you would find the area of atriangle defined

Assignment Help Computer Engineering
Reference no: EM132177382

The vertices a, b, and c contain the xyz coordinates of the corners of the triangle depicted below.For the purposes of writing code, you can assume the vertices are of type glm::vec3

1041_Triangle.jpg

a. Write C++ code or a mathematical derivation that shows how you would find the area of atriangle defined by the vertices a, b, and c.

b. Write C++ code or a mathematical derivation that shows how you find a unit normal vector thatthat comes out of the front face of the triangle.

c. Write out an implicit equation of the plane in which the three vertices of the triangle lie.

d. Write C++ code or a mathematical derivation that shows how you determine the signeddistance of a point, k from the plane in which the triangle lies.

e. Write C++ code or a mathematical derivation that shows how you would determine if a point, j,in the plane of the triangle, is to the "left" or the "right" of a ray that runs from point c to point a.

f. Assume the viewing direction is described by the vector d. Write a C++ code fragment or amathematical derivation that shows how you determine whether or not the triangle containinga, b, and c faces towards or away from the viewing direction.

g. Write a parametric description of a ray that runs from vertex a towards vertex b. The directionvector in the description should be unit length.a A,

Reference no: EM132177382

Questions Cloud

Explain the difference between page fault and valid bit : A virtual memory system is one that mechanizes the process of overlay generation by performing a series of mapping operations.
Write a program that takes as input two values : Write a program that takes as input two values: the first represents the cost of an item, and the second is the amount of money being paid for it.
The schematic generated on rtl analysis : In VHDL, What is the difference between the schematic generated on RTL analysis and schematic generated after synthesis?
Describe the concept and purpose of the star schema : Describe the concept and purpose of the star schema. What does a Fact represent in a star schema? What doDimensions represent in a start schema?
How you would find the area of atriangle defined : Write C++ code or a mathematical derivation that shows how you would find the area of atriangle defined by the vertices a, b, and c.
Criticisms regarding the neoclassical theory : What are some criticisms regarding the neoclassical theory based on this following statement:
Indicator of a standard of living : With the unemployment rate being as low as it is, do people live well? (is it a good indicator of a standard of living)
Hhi for the industry : Suppose an industry has 4 firms each with 20% of sales, and 4 firms each with 5% of sales. The HHI for the industry is?
What it would be if all earnings were paid : By how much does its value exceed what it would be if all earnings were paid as dividends and nothing were reinvested?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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