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
  • Jefman, are those formulas for rotating of the axes?

    It’s just past noon now (started today at 2:30 a.m.) and my head still isn’t clear enough to follow. Confused


    Yes, i use rotation formulas to create the points.
    Ok, it's a strange way to do it !
    I assume that it's more simple to "move" a point from an init fictive position to a real one.
    I believe that it could be done with a double cross product, but I have to work around a little... Maybe on friday or next week-end if it's raining !
Reply
  • Jefman, are those formulas for rotating of the axes?

    It’s just past noon now (started today at 2:30 a.m.) and my head still isn’t clear enough to follow. Confused


    Yes, i use rotation formulas to create the points.
    Ok, it's a strange way to do it !
    I assume that it's more simple to "move" a point from an init fictive position to a real one.
    I believe that it could be done with a double cross product, but I have to work around a little... Maybe on friday or next week-end if it's raining !
Children
No Data