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
- geometry3d/BarycentricTriangle.ts Line 400
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.