build/api-examples/Vec3.cpp¶
Complete program from the Vec3 API reference. Save it at the path shown above and use the build command in the reference page.
Source files · Download Vec3.cpp
#include "raster3d.hpp"
using namespace gaspardos::graphics;
int main()
{
Vec3 value(1, 2, 3);
return value.z == 3 ? 0 : 1;
}