3D Vector Viewer
An interactive 3D vector viewer in C# with Raylib-cs. Add vectors, set their start and end points with sliders and watch them update live in an auto-scaling, labeled coordinate grid under an orbiting camera.
- Language
- C#
- Year
- 2026
- Team
- Solo
- Stack
- C#
- .NET 10
- Raylib-cs
Grid, arrows and panel live in the class library VectorViewerClasses
- .NET 10
- Raylib-cs
Features
- Add and remove vectors with a click; each new vector gets its own color.
- Sliders for the start and end point: X, Y and Z from −5 to 5 in steps of 0.1.
- A list of all vectors; click one to select and edit it.
- A grid that grows with the vectors, labeled along the X and Z axes.
- An orbiting camera with mouse-wheel zoom, on Linux, Windows and macOS.
How it's built
Written in C# on .NET 10 with Raylib-cs, the C# bindings for raylib. The solution has two projects: a console app with the window, the camera and the main loop, and a class library with the vector model, the side panel, the grid and a drawing extension.
Every frame, the grid is sized to the largest vector, each vector is drawn as a cylinder with a cone as its head, and the axis labels are projected from 3D into screen coordinates. The panel with its buttons, sliders and list is drawn directly with raylib, without a UI framework.