• Skip to primary navigation
  • Skip to content
  • Skip to footer
🌈 μ½”λ”©μ²˜μŒμž…λ‹ˆλ‹€λ§Œ 🌈
  • CV
    λ°•μ„±μ°½ (bigbigpark)

    λ°•μ„±μ°½ (bigbigpark)

    Interested in Robotics SW

    • GitHub
    • πŸ“‚ Useful Code
      • - C++(28)
      • - Python(17)
      πŸ“‚ Study
      • - 자료ꡬ쑰 (9)
      • - μ•Œκ³ λ¦¬μ¦˜ (1)
      • - μ½”λ”©ν…ŒμŠ€νŠΈ (10)
      • - λ‘œλ³΄ν‹±μŠ€ (1)
      πŸ“‚ LIBRARY / FRAMEWORK
      • - ROS(16)
      • - ROS 2.0(3)
      • - Point Cloud Library(17)
      πŸ“‚ Linux / Ubuntu
      • - 정리 자료(6)
      πŸ“‚ Tips
      • - Trouble Shooting(14)
      • - Installation(25)
      • - Latex Syntax(1)

    Clamp ν•¨μˆ˜(lower/upper bound)

    Min, Max값을 μ •ν•΄μ„œ ν•΄λ‹Ή valueκ°€ κ°’ μ•ˆμ— λ“€μ–΄μ˜€λ„λ‘ ν•˜μž


      #define   CLAMP(value, low, high) ((value) < (low) ? (low) : ((value) > (high) ? (high) : (value)))
    

    Tags: bound, c++, clamp, cpp, lower, upper

    Categories: cpp_useful

    Updated: March 15, 2022

    이전 λ‹€μŒ

    Leave a comment

    • Follow:
    • GitHub
    • Feed
    © 2024 bigbigpark. Powered by Jekyll & Minimal Mistakes.