WireSphere.java


Below is the syntax highlighted version of WireSphere.java from § Standard Draw 3D.


/******************************************************************************
 *  Compilation:  javac WireSphere.java
 *  Execution:    java WireSphere
 *
 * Draws a wireframe sphere of radius one at (0, 0, 0).
 * 
 * Keywords: Sphere, Wireframe
 ******************************************************************************/

public class WireSphere {
    public static void main(String[] args) {
        StdDraw3D.setScale(-1, 1);
        StdDraw3D.wireSphere(0, 0, 0, 1);
        StdDraw3D.finished();
    }
}


Copyright © 2000–2011, Robert Sedgewick and Kevin Wayne.
Last updated: Thu Aug 25 14:46:50 EDT 2016.