Calc.GetBarycentricWeights Method

Computes the barycentric weights of a point to the triangle A-B-C and put it in the weights u-v-w. If the triangle is degenerate, this function returns false and u,v,w is set to 1/3 (centroid). otherwise true is returned.
Public Shared Function GetBarycentricWeights( _ 
ByVal pt As Point2d, _ 
ByVal A As Point2d, _ 
ByVal B As Point2d, _ 
ByVal C As Point2d, _ 
ByRef u As Double, _ 
ByRef v As Double, _ 
ByRef w As Double
) As Boolean
This language is not supported or no code example is available.
public static bool GetBarycentricWeights( 
Point2d pt
Point2d A
Point2d B
Point2d C
out double u
out double v
out double w 
)
This language is not supported or no code example is available.
public:  
static bool GetBarycentricWeights( 
Point2d^ pt
Point2d^ A
Point2d^ B
Point2d^ C
double& u
double& v
double& w 
)
This language is not supported or no code example is available.
public static function GetBarycentricWeights( 
pt : Point2d
A : Point2d
B : Point2d
C : Point2d
u : double
v : double
w : double 
) : boolean;
This language is not supported or no code example is available.

Parameters

pt
Point2d

A
Point2d

B
Point2d

C
Point2d

u
double

v
double

w
double

Return Value

bool

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition