const S45: f32 = std::f32::consts::FRAC_1_SQRT_2; // 0.707106769f32
sin(45deg) is used to rotate the points.
sin(45deg)