distanceSquared Method

Compute the squared distance between two points given by their barycentric coordinates.

  • It is assumed that a0 + a1 + a2 = b0 + b1 + b2 = 1.

distanceSquared(a0: number, a1: number, a2: number, b0: number, b1: number, b2: number): number

Parameter Type Description
a0 number  
a1 number  
a2 number  
b0 number  
b1 number  
b2 number  

Returns - number

Defined in

Last Updated: 28 October, 2024