03/26/2002
15-462 Graphics I
25
Barycentric Coordinates in 2D
•
Given 3 points instead of 2
•
•
•
•
•
Define 3 barycentric coordinates,
a
,
b
,
g
•
p
=
a
p
1
+
b
p
2
+
g
p
3
•
p
inside triangle iff 0
·
a
,
b
,
g
·
1
•
How do we calculate
a
,
b
,
g
given
p
?
p
1
p
2
p
3
p