Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Barycentric coordinate system
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Determining location with respect to a triangle ==== Although barycentric coordinates are most commonly used to handle points inside a triangle, they can also be used to describe a point outside the triangle. If the point is not inside the triangle, then we can still use the formulas above to compute the barycentric coordinates. However, since the point is outside the triangle, at least one of the coordinates will violate our original assumption that <math>\lambda_{1...3}\geq 0</math>. In fact, given any point in cartesian coordinates, we can use this fact to determine where this point is with respect to a triangle. If a point lies in the interior of the triangle, all of the Barycentric coordinates lie in the [[open interval]] <math>(0,1).</math> If a point lies on an edge of the triangle but not at a vertex, one of the area coordinates <math>\lambda_{1...3}</math> (the one associated with the opposite vertex) is zero, while the other two lie in the open interval <math>(0,1).</math> If the point lies on a vertex, the coordinate associated with that vertex equals 1 and the others equal zero. Finally, if the point lies outside the triangle at least one coordinate is negative. Summarizing, :Point <math>\mathbf{r}</math> lies inside the triangle [[if and only if]] <math>0 < \lambda_i < 1 \;\forall\; i \text{ in } {1,2,3}</math>. <math display=block>\mathbf{r}</math> lies on the edge or corner of the triangle if <math>0 \leq \lambda_i \leq 1 \;\forall\; i \text{ in } {1,2,3}</math> and <math>\lambda_i = 0\; \text {, for some i in } {1, 2, 3}</math>. :Otherwise, <math>\mathbf{r}</math> lies outside the triangle. In particular, if a point lies on the far side of a line the barycentric coordinate of the point in the triangle that is not on the line will have a negative value.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)