Class MathGraphsDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.graph_demo.MathGraphsDemo
Demo showing mathematical function graphs rendered in 3D.
Displays sine, cosine, tangent, and composite function graphs.
Also includes a 3D surface graph showing z = (x² - y²) / 20 with
intersecting planes and highlighted intersection curves.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera) Builds the demo scene: six formula graphs plus the saddle surface graph with intersection curves, camera positioned to overview them.static voidEntry point for the math graphs demo.
-
Constructor Details
-
MathGraphsDemo
public MathGraphsDemo()Creates a new MathGraphsDemo instance.
-
-
Method Details
-
main
Entry point for the math graphs demo.- Parameters:
args- command line arguments (ignored)
-
buildScene
public static void buildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera) Builds the demo scene: six formula graphs plus the saddle surface graph with intersection curves, camera positioned to overview them. Called by bothmain(String[])and the golden-image harness — must stay deterministic (no time, no unseeded randomness).- Parameters:
shapes- scene to add shapes tolighting- lighting to configure (unused here)camera- camera to position
-