picogl.core.mixin.vec2

Classes

Vec2Mixin

Vec3 Mixin

Functions

clamp01(x) → float

Module Contents

picogl.core.mixin.vec2.clamp01(x: float) → float[source]
class picogl.core.mixin.vec2.Vec2Mixin[source]

Vec3 Mixin

COMPONENTS: ClassVar[int] = 2[source]
abstract to_tuple() → Tuple[float, float][source]
property tuple: Tuple[float, float][source]
property xyz: Tuple[float, float][source]
clamp() → None[source]

Clamp components in-place if the class is mutable.