Skip to content

Commit d65ef18

Browse files
authored
Sphere: Add isSphere flag. (#715)
1 parent d2f4640 commit d65ef18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/three/src/math/Sphere.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import { Matrix4 } from './Matrix4.js';
66
export class Sphere {
77
constructor(center?: Vector3, radius?: number);
88

9+
/**
10+
* Read-only flag to check if a given object is of type {@link Sphere}.
11+
*/
12+
readonly isSphere: true;
13+
914
/**
1015
* @default new Vector3()
1116
*/

0 commit comments

Comments
 (0)