MeshLib Documentation
Loading...
Searching...
No Matches
MRTriPointf Struct Reference

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
 

Detailed Description

encodes a point inside a triangle using barycentric coordinates

Notations used below: v0, v1, v2 - points of the triangle

Member Data Documentation

◆ a

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

◆ b

float MRTriPointf::b

b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2


The documentation for this struct was generated from the following file: