the trigonometric functions code comes from https://www.planetminecraft.com/data-pack/trigonometry-library/ and was partially edited