Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4152

Points Polar in c#

$
0
0

Hi is there api for point Polar in c#
If not ! We can create point by vectors
IMG_20230320_100435_237

  // <Custom additional code> 
  Point3d polar (Point3d bas, double ang, double offset){
    var t = Transform.Translation(Vector3d.XAxis);
    var mp = bas;
    mp.Transform(t);
    var r = Transform.Rotation(RhinoMath.ToRadians(ang), bas);
    mp.Transform(r);
    Vector3d v = new Vector3d(mp - bas);
    v.Unitize();
    t = Transform.Translation(v * offset);
    bas.Transform(t);
    return bas;

    }

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4152

Trending Articles