Re: How to test a normal that is facing up?

Tech-Archive recommends: Fix windows errors by optimizing your registry



[Please do not mail me a copy of your followup]

"Jack" <jl@xxxxxxxxxx> spake the secret code
<O$Fad$bBJHA.1180@xxxxxxxxxxxxxxxxxxxx> thusly:

I'd like to know how do you test a normal that is facing up? or nearly up?

Take the normal vector and dot product it with the vector for the
Y-axis. The dot product of two vectors is the product of their
magnitudes and the cosine of the angle between the vectors. Assuming
the two vectors are unit vectors, then the dot product will simply be
the cosine of the angle between the vectors. Cosine of angles that are
small is very close to 1. So if the dot product of the normal and the
Y-axis vector is close to 1, then the vectors are nearly coincident.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
.



Relevant Pages

  • Re: Root Finder vii.
    ... where Q is the shortest vector from the origin to the plane. ... since angle YOZ = angle TON, ... Then dividing the two equations, ... > may be expressed as the dot product of the two vectors, ...
    (sci.math)
  • Re: How to measure an angle?
    ... >> sorry for dubious question, but could someone advise how to measure in ... >> degrees an angle ABC with numeric methods (i.e. without trigonometric ... >> that one can measure any trigonometric function of the angle and after ... > ABC is the arccossine of the dot product, ...
    (sci.math)
  • Re: Compound miter brainteaser
    ... I agree with your algorithm, ... One of the other common algoriths for computing the miter (x in your ... times the cosine of the angle between them. ... A second way to calculate the dot product is to write the vectors as ...
    (rec.woodworking)
  • Re: Compound miter brainteaser
    ... >I agree with your algorithm, ... recall that the dot product of two vectors is ... > times the cosine of the angle between them. ... > If we take the peak of the roof to be the point, and we imagine ...
    (rec.woodworking)
  • Re: How to measure an angle?
    ... > degrees an angle ABC with numeric methods (i.e. without trigonometric ... > that one can measure any trigonometric function of the angle and after ... ABC is the arccossine of the dot product, ...
    (sci.math)