|
Core 1.0
|
CoreLib is a C++17 library of geometric, mathematical and graphics primitives, designed as the foundation of graphics, procedural modeling and simulation applications. It is built on top of Qt (QtCore containers, QtGui for drawing and images).
| Core math classes. | Vectors, matrices, quaternions, polynomials (quadric to nonic), complex numbers, interval and affine arithmetic, random numbers. |
| Core geometric classes | Core 3D primitives: Box, Sphere, Plane, Triangle, Segment, Cylinder, Cone, Torus, Capsule, Axis, Frame, Ray, curves. |
| Extended geometric classes | Polyhedra and compound solids: tetrahedra, octahedra, icosahedra, Cuboid, Pyramid, Mesh, Polygon, Sector, parametric surfaces. |
| Planar geometric classes | 2D counterparts and planar-only shapes: Box2, Disc2, Circle2, Segment2, Triangle2, Convex2, Polygon2, Ellipse2, Frame2, planar curves. |
| Geometric structures | Regular grids and fields: Array2, ScalarField2, VectorField2, ScalarField, Voxel, analytic fields. |
| Color classes | Color, palettes and color spaces (HSL, Lab, XYZ). |
| Generic core classes. | System utilities: hashing, CPU information. |
Beyond the groups, the library also provides procedural noise (Perlin, simplex, Gabor, phasor, worm, Voronoi), Eden and DLA growth models, and thin wrappers around OpenGL shaders and textures.
a * b is the dot product and a / b the cross product (the scalar cross product x1 y2 - x2 y1 for Vector2).R() return the squared distance to the shape (null inside), Signed() the signed distance (negative inside), and Normal() the vector from the nearest point of the shape to the argument (null inside). See Frequently Asked Questions.Translate(), Rotate(), Scale() and Transform(); Symmetry() mirrors a point.Copyright © by Eric Galin. No representations are made about the suitability of this software for any purpose. It is provided as is without express or implied warranty.