Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";
/** Miscellaneous math utilities module. */
export interface Api {
/**
* Clamps the float value between minimum and maximum. To avoid
* confusion, any call must use either one or all three arguments.
* @returns The clamped value.
* @param value The value to clamp.
* @param min The minimum value, defaults to 0.
* @param max The maximum value, defaults to 1.
*/
clamp(value: H.In<number>, min?: H.In<number>, max?: H.In<number>): H.Ref<number>;
/**
* Clamps the float value between minimum and maximum. To avoid
* confusion, any call must use either one or all three arguments.
* @returns The clamped value.
* @param value The value to clamp.
* @param min The minimum value, defaults to 0.
* @param max The maximum value, defaults to 1.
*/
clamp(value: H.In<number>, kw: {
/** The minimum value, defaults to 0. */
min?: H.In<number>;
/** The maximum value, defaults to 1. */
max?: H.In<number>;
}): H.Ref<number>;
/**
* Clamps the float value between minimum and maximum. To avoid
* confusion, any call must use either one or all three arguments.
* @returns The clamped value.
* @param value The value to clamp.
* @param min The minimum value, defaults to 0.
* @param max The maximum value, defaults to 1.
*/
clamp(kw: {
/** The value to clamp. */
value: H.In<number>;
/** The minimum value, defaults to 0. */
min?: H.In<number>;
/** The maximum value, defaults to 1. */
max?: H.In<number>;
}): H.Ref<number>;
/**
* Linearly interpolate between two float values based on factor.
* @returns The interpolated value.
* @param from_value The value to return when factor is 0.
* @param to_value The value to return when factor is 1.
* @param factor The interpolation value, normally in [0.0, 1.0].
*/
lerp(from_value: H.In<number>, to_value: H.In<number>, factor: H.In<number>): H.Ref<number>;
/**
* Linearly interpolate between two float values based on factor.
* @returns The interpolated value.
* @param from_value The value to return when factor is 0.
* @param to_value The value to return when factor is 1.
* @param factor The interpolation value, normally in [0.0, 1.0].
*/
lerp(kw: {
/** The value to return when factor is 0. */
from_value: H.In<number>;
/** The value to return when factor is 1. */
to_value: H.In<number>;
/** The interpolation value, normally in [0.0, 1.0]. */
factor: H.In<number>;
}): H.Ref<number>;
/**
* Performs smooth interpolation between 0 and 1 as value changes between from and to values.
* Outside the range the function returns the same value as the nearest edge.
* @returns The interpolated value in [0.0, 1.0].
* @param from_value The edge value where the result is 0.
* @param to_value The edge value where the result is 1.
* @param value The interpolation value.
*/
smoothstep(from_value: H.In<number>, to_value: H.In<number>, value: H.In<number>): H.Ref<number>;
/**
* Performs smooth interpolation between 0 and 1 as value changes between from and to values.
* Outside the range the function returns the same value as the nearest edge.
* @returns The interpolated value in [0.0, 1.0].
* @param from_value The edge value where the result is 0.
* @param to_value The edge value where the result is 1.
* @param value The interpolation value.
*/
smoothstep(kw: {
/** The edge value where the result is 0. */
from_value: H.In<number>;
/** The edge value where the result is 1. */
to_value: H.In<number>;
/** The interpolation value. */
value: H.In<number>;
}): H.Ref<number>;
}