Draws a three-dimensional line (or rather, a two-dimensional line with three-dimensional perspective).
// Note: you must have a canvas tag somewhere.// Draws a line on the screen from (0, 0, 0) to (200, 100, -10)Chalkboard.geom.line3D(0, 0, 0, 200, 100, -10); Copy
// Note: you must have a canvas tag somewhere.// Draws a line on the screen from (0, 0, 0) to (200, 100, -10)Chalkboard.geom.line3D(0, 0, 0, 200, 100, -10);
The first x-coordinate
The first y-coordinate
The first z-coordinate
The second x-coordinate
The second y-coordinate
The second z-coordinate
Draws a three-dimensional line (or rather, a two-dimensional line with three-dimensional perspective).
Example