Skip to content

MatrixNode

Overview

MatrixNode displays an MxN matrix.

Example usage: const matrixNode = new MatrixNode( [ [ 2, 3, -2 ], [ 1, 0, -4 ], [ 2, -1, -6 ] ], { ... } );

NOTE: This was implemented for demonstration purposes, in response to this question in the Google Group 'Developing Interactive Simulations in HTML5': https://groups.google.com/g/developing-interactive-simulations-in-html5/c/kZPE82qE2qg?pli=1

@author Chris Malley (PixelZoom, Inc.)

Class MatrixNode

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

Constructor

new MatrixNode( matrix, options )

Instance Methods

Source Code

See the source for MatrixNode.js in the scenery-phet repository.