DPB1Class · Utilities and settings

MathEx

Provides math ex data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Common

public static class MathEx
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

Clamp

MethodLink ↗
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

min
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies min.

max
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies max.

value
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies value.

Returns: The float result.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

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.