66 return fabs(cm_d_to_d(lhs.
height) - cm_d_to_d(rhs.
height)) <= tolerance
69 && fabs(deg_d_to_d(lhs.
vFov) - deg_d_to_d(rhs.
vFov)) <= tolerance
70 && fabs(deg_d_to_d(lhs.
hFov) - deg_d_to_d(rhs.
hFov)) <= tolerance;
73gu_camera gu_camera_make(
const centimetres_d height,
const centimetres_d centerOffset,
const degrees_d vDirection,
const degrees_d vFov,
const degrees_d hFov)
bool gu_camera_equals(const gu_camera lhs, const gu_camera rhs, const double tolerance)
gu_camera gu_camera_make(const centimetres_d height, const centimetres_d centerOffset, const degrees_d vDirection, const degrees_d vFov, const degrees_d hFov)
centimetres_d centerOffset
The distance the camera is from the center point.
centimetres_d height
The height from the pivot of the camera to the middle of the camera.
degrees_d hFov
The horizontal field of view.
degrees_d vFov
The vertical field of view.
degrees_d vDirection
The degree in which the camera is facing in the vertical direction.