GenerativeComponents Help

pointByOriginDistanceAngle

	transaction modelChange 'pointByOriginDistanceAngle' 
	{
		node User.Objects.pointByOriginDistanceAngle
Bentley.GC.NodeTypes.FunctionCall 
		{
		Function  = function(CoordinateSystem
cs, Point originPoint, double radius, double theta) 
			{
				DAngle phi = new DAngle();
				phi.Degrees = theta;
				DVector3d vectD3d = new DVector3d(1.0,
0.0, 0.0);
				vectD3d.RotateXY(phi);
				vectD3d.ScaleToLength(radius);
				DPoint3d ptD3d = new DPoint3d();
				ptD3d.Init(originPoint.DPoint3d);
				ptD3d.AddInPlace(ref vectD3d);
				Point pt = new Point(); 
				pt.FromDPoint3d(cs, ptD3d); 
				return pt; 
			}; 
		}
	}