▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Датапаки/Racoon Math Library
Racoon Math Library

Racoon Math Library

Do you create data packs for Minecraft but find yourself frustrated by the lack of certain mathematical tools? This library is for you!

40
0
Все версииRML-v1.0.1

RML-v1.0.1

Release6 мес. назад

Список изменений

Fixed Point = Int fixed point with 3 decimal after the coma(1->1000, 2.107->2107, 3.1415->3141)

Vector = Array of 3 double var

Setup

/function math:setup

To initialize the pack you need to execute this command


Easing Functions

Easing In/Out/InOut Power

/function math:function/ease/inpower
/function math:function/ease/outpower
/function math:function/ease/inoutpower

Input : scoreboard "In0 RacoonMath" progression Fixed Point in range 0-1000 (= 0-1.000), scoreboard "In1 RacoonMath" the int power of the easing

Output: this function return the Fixed Point value of the easing


Other ease functions

Input : scoreboard "In0 RacoonMath" progression Fixed Point in range 0-1000 (= 0-1.000)

Output: these functions return the Fixed Point value of the easing

new in Math Functions input

Sqrt

New Input: scoreboard "Math.In1 RacoonMath" the scale of the Input value

Output: return the sqrt value scaled

ex: To take the square root of 1.230 you run the function with In0 = 1230 and In1 = 1000, return 1109


Fast exponentiation

New Input: scoreboard "Math.In2 RacoonMath" the scale of the base value


new in Vectors

Bezier Interpolation

/function math:vector/interpolation/bezier

return the interpolated 3d vector of the 3 input vector and the progression

Input : storage math:data in (array of 3 vectors), scoreboard "Math.In0 RacoonMath" progression Fixed Point value

Output: storage math:data out (vector)


Cubic Bezier Interpolation

/function math:vector/interpolation/cubic_bezier

return the interpolated 3d vector of the 4 input vector and the progression

Input : storage math:data in (array of 4 vectors), scoreboard "Math.In0 RacoonMath" progression Fixed Point value

Output: storage math:data out (vector)


Файлы

RML-v1.0.1.zip(192.27 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.0.1

Загрузчики

Версии игры

1.21.6–1.21.8

Загрузок

14

Дата публикации

6 мес. назад

Загрузил

ID версии

Главная