encodes a point inside a triangle using barycentric coordinates More...
#include <MRTriPoint.h>
Public Attributes | |
float | a |
float | b |
b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2 | |
encodes a point inside a triangle using barycentric coordinates
Notations used below: v0, v1, v2 - points of the triangle
float MRTriPointf::a |
barycentric coordinates: a+b in [0,1], a+b=0 => point is in v0, a+b=1 => point is on [v1,v2] edge a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
float MRTriPointf::b |
b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2