Skip to content

ProtractorNode

Overview

ProtractorNode is a device for measuring angles.

@author Sam Reid (PhET Interactive Simulations) @author Chandrashekar Bemagoni (Actual Concepts) @author Chris Malley (PixelZoom, Inc.)

Class ProtractorNode

import { ProtractorNode } from 'scenerystack/scenery-phet';

Constructor

new ProtractorNode( providedOptions? : ProtractorNodeOptions )

Instance Methods

reset()

Instance Properties

angleProperty : Property<number>

(readonly)

angle of the protractor, in radians

Static Methods

createIcon( options : NodeOptions ) : Node

Creates an icon, to be used for toolboxes, checkboxes, etc.

Type ProtractorNodeOptions

import type { ProtractorNodeOptions } from 'scenerystack/scenery-phet';
  • rotatable?: boolean
    whether the protractor is rotatable via user interaction
  • angle?: number
    the initial angle of the protractor, in radians
  • & StrictOmit<NodeOptions, "children">

Source Code

See the source for ProtractorNode.ts in the scenery-phet repository.