Skip to content
FutureBlitz

    Install

    Import std.math.vector

    Clamp

    std.math.vector

    function

    @PanicsAtCaller Public Function Clamp(v: Vec2, low: Vec2, high: Vec2): Vec2

    Each component kept between low's and high's, as Clamp keeps a Float. A component whose low is above its high panics.

    std/math/vector.fb, line 373

    function

    @PanicsAtCaller Public Function Clamp(v: Vec3, low: Vec3, high: Vec3): Vec3

    Each component kept between low's and high's, as Clamp keeps a Float. A component whose low is above its high panics.

    std/math/vector.fb, line 380

    function

    @PanicsAtCaller Public Function Clamp(v: Vec4, low: Vec4, high: Vec4): Vec4

    Each component kept between low's and high's, as Clamp keeps a Float. A component whose low is above its high panics.

    std/math/vector.fb, line 387

    Report an issue with this page or with FutureBlitz on GitHub.