How do you take the X/Y-value of a point?

How do you take the X/Y cords of a point if you cannot have the point defined by variables that are the X/Y cords. For example how would I make function G work in the following graph?

You can access the coordinates of a point with .x and .y

So change x and y in the g function to P.x and P.y and that will pull the coordinates from the P parameter.

2 Likes

Thanks! That’s going to simplify a lot of things for me.

1 Like