picogl.core.mixin.vec2 ====================== .. py:module:: picogl.core.mixin.vec2 Classes ------- .. autoapisummary:: picogl.core.mixin.vec2.Vec2Mixin Functions --------- .. autoapisummary:: picogl.core.mixin.vec2.clamp01 Module Contents --------------- .. py:function:: clamp01(x: float) -> float .. py:class:: Vec2Mixin Vec3 Mixin .. py:attribute:: COMPONENTS :type: ClassVar[int] :value: 2 .. py:method:: to_tuple() -> Tuple[float, float] :abstractmethod: .. py:property:: tuple :type: Tuple[float, float] .. py:property:: xyz :type: Tuple[float, float] .. py:method:: clamp() -> None Clamp components in-place if the class is mutable.