Package | Description |
---|---|
fr.cnes.sirius.patrius.math.util |
Modifier and Type | Method and Description |
---|---|
static int |
FastMath.addExact(int a,
int b)
Add two numbers, detecting overflows.
|
static long |
FastMath.addExact(long a,
long b)
Add two numbers, detecting overflows.
|
static int |
FastMath.decrementExact(int n)
Decrement a number, detecting overflows.
|
static long |
FastMath.decrementExact(long n)
Decrement a number, detecting overflows.
|
static int |
FastMath.floorDiv(int a,
int b)
Finds q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0.
|
static long |
FastMath.floorDiv(long a,
long b)
Finds q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0.
|
static int |
FastMath.floorMod(int a,
int b)
Finds r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0.
|
static int |
FastMath.incrementExact(int n)
Increment a number, detecting overflows.
|
static long |
FastMath.incrementExact(long n)
Increment a number, detecting overflows.
|
Copyright © 2021 CNES. All rights reserved.