226 {
227// A new coordinate system is created with the xy plane corresponding228// to the plane normal to the normal axis, and the x axis corresponding to229// the projection of the reference axis onto the normal plane. The normal230// plane is the tangent plane at the root point. A unit vector is231// constructed along the local x axis and then rotated by the given232// ccw angle to form the new point. The new point, then is a unit233// distance from the global origin in the tangent plane.234235double x, y;
236237// project a unit distance from root along reference axis238239 VerdictVector yAxis = normalAxis * referenceAxis;
240 VerdictVector xAxis = yAxis * normalAxis;
241 yAxis.normalize();
242 xAxis.normalize();
243244 x = cos( angle );
245 y = sin( angle );
246247 xAxis *= x;
248 yAxis *= y;
249returnVerdictVector( xAxis + yAxis );
250 }