Sign up
      Docs
      • Zoo Design Studio
      • Zoo Developer Tools
      • KCL Language Reference
      • KCL Standard Library
        • ::appearance
        • ::array
        • ::math
          • abs
          • acos
          • asin
          • atan
          • atan2
          • ceil
          • cos
          • E
          • floor
          • legAngX
          • legAngY
          • legLen
          • ln
          • log
          • log10
          • log2
          • max
          • min
          • PI
          • polar
          • pow
          • rem
          • round
          • sin
          • sqrt
          • tan
          • TAU
        • ::sketch
        • ::solid
        • ::sweep
        • ::transform
        • ::turns
        • ::types
        • ::units
        • appearance
        • assert
        • assertIs
        • clone
        • END
        • helix
        • offsetPlane
        • patternLinear2d
        • START
        • X
        • XY
        • XZ
        • Y
        • YZ
        • Z
      • KCL Book
      • KCL Samples
      • Glossary
      • FAQ
      KCL Library Reference → std → math → legAngX

      legAngXFunction in std::math

      Compute the angle of the given leg for x.

      legAngX(
        hypotenuse: number(Length),
        leg: number(Length),
      ): number(deg)
      

      Arguments

      NameTypeDescriptionRequired
      hypotenusenumber(Length)The length of the triangle's hypotenuse.Yes
      legnumber(Length)The length of one of the triangle's legs (i.e. non-hypotenuse side).Yes

      Returns

      number(deg) - A number.

      Examples

      legAngX(hypotenuse = 5, leg = 3)