public void Setup(int ViewWidth, int ViewHeight) /* initial setup for drawing that doesn't need to be done for every frame. */ { if (!SetupDone) { ArrowShape = MakeArrow(Shaded); SetupDone = true; } /*if*/ ProjectionMatrix = Mat4f.frustum( /*L =*/ -(float) ViewWidth / ViewHeight, /*R =*/ (float) ViewWidth / ViewHeight, /*B =*/ -1.0f, /*T =*/ 1.0f, /*N =*/ 1.0f, /*F =*/ 10.0f) .mul(Mat4f.translation(new Vec3f(0, 0, -3.0f))); } /*Setup*/