Ignition
Introduction
Getting Started
Classes
ScrollBox Scripting
🏠 Home
Playniax Framework
Ignition
EasyGameUI
Packages
Product Navigator
Pyro
Galaga Essentials
Space Shooter Art Pack 01
Space Shooter Art Pack 02
Space Shooter Art Pack 03
Infinite Scroller
Radar System
Sequencer
Advanced Spawners
SHMUP Builder
Sprite Illuminator
Games
Drone Defender
Zig Zag
Misc
Download
Donate
Playniax Shop
Unity Asset Store
Ignition
/ MathHelpers
Namespace
Playniax.Ignition
Script can be found in
Assets/Playniax/Framework/Ignition/Framework/Core/Scripts/MathHelpers.cs
Class MathHelpers
Description
Collection of math functions.
Public Methods
Description
static
float
Mod(
float
n,
float
x)
Calculates the modulus (remainder) of a division operation between two floating-point numbers.
It ensures that the result always remains within the range of [0, x).