Skip to content

Three-dimensional cube rotation and scaling using JavaFX library.

License

Notifications You must be signed in to change notification settings

titemov/JavaFX_3Dcube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaFX_3Dcube

Three-dimensional cube rotation and scaling using JavaFX library. Rotation implies showing only visible side of cube.

System requirements

Java version 23.0.1

JavaFX version 23.0.1

Compilation

  1. Download latest JavaFx library and extract contents.

  2. To compile, open command line in source code directory and write
    javac --module-path {Path to your javafx lib folder} --add-modules=javafx.controls Main.java

    • For example if JavaFx contents extracted to С:\Java
      Then command should look like this:
      javac --module-path "C:\Java\javafx-sdk-23.0.1\lib" --add-modules=javafx.controls Main.java
  3. After compilation run Main file:
    java --module-path {Path to your javafx lib folder} --add-modules=javafx.controls Main

Usage

After successful compilation just enter X, Y, Z degree and, if you want, change scale of cube. To confirm and see the result of entered values just press "Enter!" button.

Figure 1. Working program

After pressing the button you will see projection of three-dimensional cube.

References

  1. https://habr.com/ru/articles/494094/
  2. https://habr.com/ru/articles/497808/

Releases

No releases published

Packages

No packages published

Languages