Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 67020

Re: How to retrieve startAngle and endAngle of Arc object

$
0
0

XYZ P45 = new XYZ(Math.Sqrt(2) / 2, Math.Sqrt(2) / 2, 0);

XYZ P60 = new XYZ(0.5, Math.Sqrt(3) / 2, 0);

XYZ P30 = new XYZ(Math.Sqrt(3) / 2, 0.5, 0);

 

double Angle60To45= P60.AngleTo(P45); // return Pi/12 radian --15 degree

double Angle30To45= P30.AngleTo(P45); // return Pi/12 radian -- 15 degree


I expect to receive Pi/12 with Angle60To45 and -Pi/12 with Angle30To45 how can I do?

Thanks


Viewing all articles
Browse latest Browse all 67020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>