Settings

Choose language

adjacent (point1,point2,length,side)

adjacent
  • Places a new point of a right triangle with hypotenuse between the mentioned points, so that the leg between the first point and the new point is of the given length. The length should always be smaller than the distance between the two mentioned points. The last parameter is optional, and stands for either left side (1) of the hypothenuse of right side (2) of the hypothenuse.

    Function parameters


  • starting point of hypothenuse and adjacent
  • ending point of hypothenuse
  • length of adjacent, cannot be larger than the distance between the two points mentioned above
  • (optional) parameter defining whether the left or the right point is needed, 1 (left) by default

    Usage


    It is mandatory to name the new point.

    You can use mathematical equations, variables, object properties and size constants in syntax.

    p3=adjacent(p1, p2, 25) // the 4th parameter is implied to be 1 (first point)
    p3=adjacent(p1, p2, 25, 2)

  • Previous article

    intercept (center,radius,point,angle,side)

    Next article

    line(point1,point2)