Calculator: Barycentric coordinates

Enter the labelled inputs to calculate: Value α; Value β; Value γ.

Value α
0.4166666667
Value β
0.25
Value γ
0.3333333333

How the calculation works

P=αA+βB+γC; α+β+γ=1

Use one coordinate unit throughout. Triangle vertices must be non-collinear. Polygon vertices must follow the boundary of a simple non-self-intersecting polygon; orientation changes the signed area.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

P=αA+βB+γC; α+β+γ=1

What assumptions apply?

Use one coordinate unit throughout. Triangle vertices must be non-collinear. Polygon vertices must follow the boundary of a simple non-self-intersecting polygon; orientation changes the signed area.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Value Ax = 0
Value Ay = 0
Value Bx = 4
Value By = 0
Value Cx = 0
Value Cy = 3
Value Px = 1
Value Py = 1
Value α: 0.4166666667
Value β: 0.25
Value γ: 0.3333333333
2
Value Ax = 1
Value Ay = 2
Value Bx = 5
Value By = -1
Value Cx = -2
Value Cy = 7
Value Px = 1
Value Py = 3
Value α: 0.3636363636
Value β: 0.2727272727
Value γ: 0.3636363636
3
Value Ax = -3.5
Value Ay = 1
Value Bx = 2
Value By = 4.5
Value Cx = 0
Value Cy = -2
Value Px = 4
Value Py = 4
Value α: -0.4869565217
Value β: 1.147826087
Value γ: 0.3391304348

How we test our calculators →

Also try:

Back to category →