ThreeNode¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/mobius/blob/main/js/ThreeNode.ts for the most up-to-date information.
Overview¶
Shows three.js content within a rectangle, displayed to be inside of a rectangle in arbitrary places in the scene graph.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class ThreeNode¶
Constructor¶
new ThreeNode( width : number, height : number, providedOptions? : ThreeNodeOptions )¶
Instance Methods¶
projectPoint( point : Vector3 ) : Vector2¶
Projects a 3d point in the global coordinate frame to one within the 2d global coordinate frame.
layout()¶
render( target? : THREE.WebGLRenderTarget )¶
Renders the simulation to a specific rendering target
@param [target] - undefined for the default target
dispose()¶
Releases references.
Instance Properties¶
stage : ThreeStage¶
(readonly)
backgroundEventTarget : Node¶
(readonly)
Type ThreeNodeOptions¶
- fov?: number
- & ThreeStageOptions & NodeOptions
Source Code¶
See the source for ThreeNode.ts in the mobius repository.