hexagon logo

How to calculate arc points with an angle, center point and radius

I am putting this here because others may use it.

How to find point x,y and i,j on an arc at specific angles

ASSIGN/V1=ARRAY("Center X","Center Y","Center Z")
ASSIGN/V2="Radius of Circle"
ASSIGN/V3="First Angle"
ASSIGN/V4="Second Angle"
ASSIGN/V5=3.141592654
ASSIGN/V6=ARRAY(FORMAT("%.8F",V1[1]+(V2*(COS(V3/(180/V5))))),FORMAT("%.8F",V1[2]+(V2*(SIN(V3/(180/V5))))),V1[3],FORMAT("%.8F",COS(V3/(180/V5))),FORMAT("%.8F",SIN(V3/(180/V5))),0)
ASSIGN/V7=ARRAY(FORMAT("%.8F",V1[1]+(V2*(COS(V4/(180/V5))))),FORMAT("%.8F",V1[2]+(V2*(SIN(V4/(180/V5))))),V1[3],FORMAT("%.8F",COS(V4/(180/V5))),FORMAT("%.8F",SIN(V4/(180/V5))),0)
Parents Reply Children
No Data