Darf Zon
Darf Zon

Reputation: 6378

How to draw a angle (three points) in WPF?

I plan to create a software about drawing angles. And I really have no idea about how to represent the correct three point position.

For example, I need a someway that I introduced the value 90, I get the righ position of the three point.

Until the momment, I just need some help or ideas about how to draw correctly the line or points with XAML.

Thanks.

enter image description here

Upvotes: 1

Views: 1271

Answers (1)

NestorArturo
NestorArturo

Reputation: 2516

Use the Path object to draw those lines... and the formula:

var CoordinateX = Math.Cos(Angle); var CoordinateY = Math.Sin(Angle);

Angle in radians.

Upvotes: 3

Related Questions