MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / ReadRotationFromArgs

Function ReadRotationFromArgs

src/Util.cc:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void 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}

Callers 2

NAN_METHODFunction · 0.85
NAN_METHODFunction · 0.85

Calls 2

ReadPointFunction · 0.85
extract_doubleFunction · 0.85

Tested by

no test coverage detected