Enterprise
Sign In
← Docs
  • Zoo Design Studio
  • Zoo Developer Tools
  • Glossary
  • FAQ
kcl-std → functions → legLen

legLenFunction in std::math

Compute the length of the given leg.

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(Length) - A number.

Examples

Found a typo?
Zoo

8701 Aviation Blvd

Inglewood, California 90301

    Product
  • Zoo Design Studio
  • Text-to-CAD
  • Download App
  • Release Notes
    Company
  • Enterprise
  • Careers
  • Research
  • Blog
  • Contact sales
    Pricing
  • Zoo Design Pricing
  • API Pricing
    Resources
  • Tutorials
  • Developers
  • Support
  • Terms & Conditions
  • Privacy Policy
  • Security
  • Trust Center

Copyright © 2026 ZOO CORPORATION All rights reserved.