Subject: Re: Point inside a triangle
Date: Wed, 19 Nov 1997 18:03:19 -0500
From: Alex Bogomolny

Dear Irina:

The question is not at all stupid and students taking a Computer Graphics course would learn a couple of possible answers.

Yours is right but computing angles on a PC involves floating point arithmetic and trigonometric functions. It's much simpler and, definitely faster, to write equations of the three sides of a triangle and substitute your point into each. If the three results all have the same sign, the point is inside the triangle. Otherwise, it's outside.

Is it beautiful enough for you?

Best regards,
Alexander Bogomolny

|Reply| |Up| |Down| |Exchange index| |Contents| |Store|

Copyright © 1996-2012 Alexander Bogomolny

 40615587

A math books store at a unique math study site. Shopping at the store helps maintain the site. Thank you.
Sites for teachers
Sites for parents
Terms of use
Awards
Interactive Activities

CTK Exchange
CTK Wiki Math
CTK Insights - a blog
Math Help
Games & Puzzles
What Is What
Arithmetic
Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Stories for Young
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Old and nice bookstore
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Sites for parents

Education & Parenting

Search:
Keywords:

Google
Web CTK
Supported by
3wVentures