UI interface Code for the picture in centre node Triangle Trigonometry

Hey, guys.

can anyone suggest where is there any sample code in c-sharp for visual studio 2022 for the standard grasshopper nodes Triangle Trigonometry and Right Trigonometry ?

or maybe someone can tell me how to draw a picture like this in the centre of a node.