static int test_bn_mat_scale_about_pt(int argc, char *argv[]) { mat_t expected, actual; point_t p; double s; int error, expected_error; if (argc != 6) { bu_exit(1, "<args> format: P s error <expected_result> [%s]\n", argv[0]); } sscanf(argv[2], "%lg,%lg,%lg", &p[0], &p[1], &p[2]); sscanf(argv[3], "%lg", &s); sscanf(argv[4], "%d", &expected_error); scan_mat_args(argv, 5, &expected); error = bn_mat_scale_about_pt(actual, p, s); return !(mat_equal(expected, actual) && error == expected_error); }
void bn_mat_scale_about_pt_wrapper(int *statusp, mat_t mat, const point_t pt, const double scale) { *statusp = bn_mat_scale_about_pt(mat, pt, scale); }