Example

Circles, Angles, and Right Triangles

geometric.pointTranslate(point, angle, distance) returns a translated point at a given angle and distance. Here, it places a point on a circle so the horizontal and vertical legs show cosine, sine, and tangent ratios.

Move the angle slider to see how the right triangle changes around the circle.

cos = xr 0.82
sin = yr 0.57
tan = yx 0.70
30°45°60°90°120°135°150°180°210°225°240°270°300°315°330°

Code