| 118 | } |
| 119 | |
| 120 | void ReadRotationFromArgs(_NAN_METHOD_ARGS, gp_Trsf& trans) |
| 121 | { |
| 122 | |
| 123 | double x = 0, y = 0, z = 0; |
| 124 | ReadPoint(info[0], &x, &y, &z); |
| 125 | |
| 126 | double u = 0, v = 0, w = 0; |
| 127 | ReadPoint(info[1], &u, &v, &w); |
| 128 | |
| 129 | double angle = extract_double(info[2]); |
| 130 | |
| 131 | trans.SetRotation(gp_Ax1(gp_Pnt(x, y, z), gp_Dir(u, v, w)), angle / 180.0*M_PI); |
| 132 | } |
no test coverage detected