Skip to content

Commit

Permalink
Sphere: Add isSphere flag. (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Dec 19, 2023
1 parent d2f4640 commit d65ef18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/three/src/math/Sphere.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { Matrix4 } from './Matrix4.js';
export class Sphere {
constructor(center?: Vector3, radius?: number);

/**
* Read-only flag to check if a given object is of type {@link Sphere}.
*/
readonly isSphere: true;

/**
* @default new Vector3()
*/
Expand Down

0 comments on commit d65ef18

Please sign in to comment.