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

Having a 3d case is probably stupid.

But returning to your example:

It's all a question of choosing equations that correspond to the same orientations.

The triangle in your case is defined by three points: (0,0), (1.5, 0), (0,3).

Choose the boundary traversal direction: (0,0) -> (1.5, 0) -> (0,3) -> (0,0)

This gives you vectors (1.5, 0), (-1.5, 3), (0, -3). Use the transformation (a,b) -> (b, -a) to get perpendicular vectors: (0, -1.5), (3, 1.5), (-3, 0). These leads to equations:

-1.5y = 0
3x + 1.5y - 4.5 = 0
-3x = 0

Define:

  1. f1(x,y) = -1.5y
  2. f2(x,y) = 3x + 1.5y - 4.5
  3. f3(x,y) = -3x

Point: (1,3).

  1. f1(1,3) = -4.5 < 0
  2. f2(1,3) = 3 > 0
  3. f3(1,3) = -3 < 0

Not all signs are the same. Hence the point is outside the triangle.

Check for point (.5, .5):

  1. f1(.5, .5) = -0.75 < 0
  2. f2(.5, .5) = -2.25 < 0
  3. f3(.5, .5) = -1.5 < 0

All signs are the same. Therefore, the point is inside the triangle.

Regards,
Alexander Bogomolny

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

Copyright © 1996-2012 Alexander Bogomolny

 40615550

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