hachclient
  • 🐣Вступление
  • ✈️События
    • onInput
    • onDisable
    • onEnable
    • onUpdate
    • onRender
    • onMove
    • onKey
    • onGuiClick
    • onGuiRelease
    • onGuiRender
  • 📚Библиотеки
    • inventory
    • timer
    • player
    • chat
    • render
    • color
    • mathutil
    • gl11
    • world
    • projection
  • gui
  • window
  • client
  • drag
  • settings
  • network
  • 🌎Объекты
    • item
    • timer
    • entity
    • module
    • drag
  • Vector3
  • Vector2
  • Примеры скриптов
    • ⛏️Выбросить предметы
    • ⌨️Горячие клавиши
    • Китайская шляпа
Powered by GitBook
On this page
  • mathutil:random(min,max)
  • mathutil:clamp(value,min,max)
  • mathutil:lerp(current,target,speed)
  • mathutil:easeInOutSine(current,target,speed)
  1. Библиотеки

mathutil

Модуль упрощает работу с математикой

mathutil:random(min,max)

mathutil:random(0,100) -- рандомное число от 0 до 100

mathutil:clamp(value,min,max)

mathutil:clamp(16,2,24)

mathutil:lerp(current,target,speed)

mathutil:lerp(0, 100, 0.5)) -- 50

mathutil:easeInOutSine(current,target,speed)

mathutil:easeInOutSine(100, target, 1)
PreviouscolorNextgl11

Last updated 6 days ago

📚