Searched refs:hypotenuse (Results 1 – 3 of 3) sorted by relevance
24 double hypotenuse; in drawAxis() local26 hypotenuse = sqrt( (double) (p.y - q.y) * (p.y - q.y) + (p.x - q.x) * (p.x - q.x)); in drawAxis()31 q.x = (int) (p.x - scale * hypotenuse * cos(angle)); in drawAxis()32 q.y = (int) (p.y - scale * hypotenuse * sin(angle)); in drawAxis()
43 … double hypotenuse = sqrt( (double)(p.y - q.y)*(p.y - q.y) + (double)(p.x - q.x)*(p.x - q.x) ); in drawArrows() local45 if (hypotenuse < 1.0) in drawArrows()49 q.x = (int) (p.x - 3 * hypotenuse * cos(angle)); in drawArrows()50 q.y = (int) (p.y - 3 * hypotenuse * sin(angle)); in drawArrows()
48 … double hypotenuse = sqrt( (double)(p.y - q.y)*(p.y - q.y) + (double)(p.x - q.x)*(p.x - q.x) ); in drawArrows() local50 if (hypotenuse < 1.0) in drawArrows()54 q.x = (int) (p.x - 3 * hypotenuse * cos(angle)); in drawArrows()55 q.y = (int) (p.y - 3 * hypotenuse * sin(angle)); in drawArrows()