This article is a work in progress.
Generating a string representation of a math.gl object with desired precision and formatting.
Every math.gl object has a
toString() to call
formatString() with the global printing options in the math.gl
formatStringmethods print with controllable precision
|Number of significant digits|
|Prints the name of the math.gl type (e.g. |
|Prints degrees instead of radians (e.g. for |
|Prints matrices as row major which makes them look more familiar instead of as column major (which is how they are stored internally for WebGL compatibility).|