How do you refer to the width of image in Custom Nodes?

On page 1590 of the Davinci Resolve 15 Manual for the Custom Node in Fusion tab, it states that you refer to Point In 1 X as p1x but in practice this does not work and I have to specify PointIn1.X
I am trying to work out the angle of a line based on two points by doing a calculation based on the slope/gradient of a line something like deg(atan((PointIn1.X-PointIn2.X)/(PointIn1.Y-PointIn2.Y))) but this is giving the wrong result i'm assuming because X and Y vary from 0 to 1 in both directions, but the aspect ratio of the screen does not, so if the aspect ratio of the screen was 1.7:1 I would have to use that number to multiply X to get the correct slope/angle.
My question is, what is the variable name to get the Width/Height or Aspect ratio of the screen/image/MediaIn1?
The manual suggests this as ax for Image Aspect X (and ay)
could also use w - Width of Image
but neither ax or w work, just like p1x did not work.
I am trying to work out the angle of a line based on two points by doing a calculation based on the slope/gradient of a line something like deg(atan((PointIn1.X-PointIn2.X)/(PointIn1.Y-PointIn2.Y))) but this is giving the wrong result i'm assuming because X and Y vary from 0 to 1 in both directions, but the aspect ratio of the screen does not, so if the aspect ratio of the screen was 1.7:1 I would have to use that number to multiply X to get the correct slope/angle.
My question is, what is the variable name to get the Width/Height or Aspect ratio of the screen/image/MediaIn1?
The manual suggests this as ax for Image Aspect X (and ay)
could also use w - Width of Image
but neither ax or w work, just like p1x did not work.