Skip to content

Commit

Permalink
Triangle: Return null in getBarycoord() if the triangle is degenerate…
Browse files Browse the repository at this point in the history
…d. (#707)
  • Loading branch information
Methuselah96 authored Dec 15, 2023
1 parent b9e5af4 commit 096fb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/three/src/math/Triangle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Triangle {
equals(triangle: Triangle): boolean;

static getNormal(a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3;
static getBarycoord(point: Vector3, a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3;
static getBarycoord(point: Vector3, a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3 | null;
static containsPoint(point: Vector3, a: Vector3, b: Vector3, c: Vector3): boolean;
/**
* @deprecated THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation().
Expand Down

0 comments on commit 096fb16

Please sign in to comment.