Members and overloads 18 declared here On this results page CalculatePointFrom(Vector3, Vector3, float) Clamp(float, float, float) Distance(Vector3, LineSegment) Distance(Vector3, LineSegment) DistanceSqr(Vector3, LineSegment) DistanceSqr(Vector3, LineSegment) GenerateRandomNormalDistributed(double, double, bool) GetAmount(float, float, float) GetPercentage(float, float, bool) GetPointAt(Vector3, float, float) IntersectsPath(Vector2i, float, Vector2i, Vector2i) IntersectsPath(Vector3, float, Vector3, Vector3) InverseLerp(float, float, float) Lerp(float, float, float) Random(double, double) ToDegrees(float) ToRadians(float) WrapAngle(float) CalculatePointFrom Method Link ↗
Copy
public static Vector3 MathEx.CalculatePointFrom(Vector3 myLoc, Vector3 targetLoc, float pointDistanceToTarget)
Calculates point from using the supplied arguments.
Parameters
myLocSpecifies my loc.
targetLocSpecifies target loc.
pointDistanceToTargetParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies point distance to target.
Returns: The Vector3 result.
Copy
public static float MathEx.Clamp(float min, float max, float value)
Calls Clamp on MathEx with min, max, value and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
minParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies min.
maxParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies max.
valueParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies value.
Returns: The float result.
Copy
public static float MathEx.Distance(Vector3 point, LineSegment line)
Calls Distance on MathEx with point, line and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
pointSpecifies point.
lineParameter type: LineSegmentSpecifies line.
Returns: The float result.
Copy
public static float MathEx.Distance(ref Vector3 point, ref LineSegment line)
Calls Distance on MathEx with point, line and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
pointSupplies and may update point.
lineParameter type: LineSegmentSupplies and may update line.
Returns: The float result.
Copy
public static float MathEx.DistanceSqr(Vector3 point, LineSegment line)
Calls DistanceSqr on MathEx with point, line and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
pointSpecifies point.
lineParameter type: LineSegmentSpecifies line.
Returns: The float result.
Copy
public static float MathEx.DistanceSqr(ref Vector3 point, ref LineSegment line)
Calls DistanceSqr on MathEx with point, line and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
pointSupplies and may update point.
lineParameter type: LineSegmentSupplies and may update line.
Returns: The float result.
GenerateRandomNormalDistributed Method Link ↗
Copy
public static double MathEx.GenerateRandomNormalDistributed(double min, double max, bool isInteger = false)
Generates a random number from a normal distribution within specified bounds.
Return type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
minParameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The minimum value (inclusive) of the desired range.
maxParameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The maximum value (inclusive) of the desired range.
isIntegerParameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.
Returns: A random number from the normal distribution within the specified range.
Copy
public static float MathEx.GetAmount(float min, float max, float value)
Calls GetAmount on MathEx with min, max, value and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
minParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies min.
maxParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies max.
valueParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies value.
Returns: The float result.
Copy
public static float MathEx.GetPercentage(float current, float max, bool isHundredHigh = true)
Calls GetPercentage on MathEx with current, max, isHundredHigh and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
currentParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies current.
maxParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies max.
isHundredHighParameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies is hundred high. Optional; the default is shown in the signature.
Returns: The float result.
Copy
public static Vector3 MathEx.GetPointAt(Vector3 from, float distance, float rotationRadians)
Calls GetPointAt on MathEx with from, distance, rotationRadians and returns Vector3. Open the return contract below before using the result.
Parameters
fromSpecifies from.
distanceParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies distance.
rotationRadiansParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies rotation radians.
Returns: The Vector3 result.
Copy
public static bool MathEx.IntersectsPath(Vector2i target, float radius, Vector2i start, Vector2i destination)
Calls IntersectsPath on MathEx with target, radius, start, destination and returns bool. Open the return contract below before using the result.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
targetSpecifies target.
radiusParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies radius.
startSpecifies start.
destinationSpecifies destination.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public static bool MathEx.IntersectsPath(Vector3 target, float radius, Vector3 start, Vector3 destination)
Calls IntersectsPath on MathEx with target, radius, start, destination and returns bool. Open the return contract below before using the result.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
targetSpecifies target.
radiusParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies radius.
startSpecifies start.
destinationSpecifies destination.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public static float MathEx.InverseLerp(float min, float max, float amount)
Calls InverseLerp on MathEx with min, max, amount and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
minParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies min.
maxParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies max.
amountParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies amount.
Returns: The float result.
Copy
public static float MathEx.Lerp(float min, float max, float amount)
Calls Lerp on MathEx with min, max, amount and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
minParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies min.
maxParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies max.
amountParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies amount.
Returns: The float result.
Copy
public static double MathEx.Random(double min, double max)
Calls Random on MathEx with min, max and returns double. Open the return contract below before using the result.
Return type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
minParameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies min.
maxParameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies max.
Returns: The double result.
Copy
public static float MathEx.ToDegrees(float radians)
Calls ToDegrees on MathEx with radians and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
radiansParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies radians.
Returns: The float result.
Copy
public static float MathEx.ToRadians(float degrees)
Calls ToRadians on MathEx with degrees and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
degreesParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies degrees.
Returns: The float result.
Copy
public static float MathEx.WrapAngle(float radian)
Calls WrapAngle on MathEx with radian and returns float. Open the return contract below before using the result.
Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
radianParameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies radian.
Returns: The float result.
DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.