mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-20 16:14:57 +08:00
THREE.BufferGeometry.setFromPoints accepts Vector2s as well
The documentation shows examples of this, e.g.: https://threejs.org/docs/#api/extras/curves/EllipseCurve The source code shows how it handles an array of either type: https://github.com/mrdoob/three.js/blob/2f2e5f731/src/core/BufferGeometry.js#L352
This commit is contained in:
2
types/three/three-core.d.ts
vendored
2
types/three/three-core.d.ts
vendored
@@ -873,7 +873,7 @@ export class BufferGeometry extends EventDispatcher {
|
||||
center(): BufferGeometry;
|
||||
|
||||
setFromObject(object: Object3D): BufferGeometry;
|
||||
setFromPoints(points: Vector3[]): BufferGeometry;
|
||||
setFromPoints(points: Vector3[]|Vector2[]): BufferGeometry;
|
||||
updateFromObject(object: Object3D): void;
|
||||
|
||||
fromGeometry(geometry: Geometry, settings?: any): BufferGeometry;
|
||||
|
||||
Reference in New Issue
Block a user