picogl.core.vec3 ================ .. py:module:: picogl.core.vec3 .. autoapi-nested-parse:: Three-component vector value object. Attributes ---------- .. autoapisummary:: picogl.core.vec3.EPSILON Classes ------- .. autoapisummary:: picogl.core.vec3.Vec3 Module Contents --------------- .. py:data:: EPSILON :value: 1e-12 .. py:class:: Vec3 Bases: :py:obj:`picogl.core.mixin.vec3.Vec3Mixin` A three-component vector. .. py:attribute:: x :type: float .. py:attribute:: y :type: float .. py:attribute:: z :type: float .. py:method:: __str__() .. py:method:: to_tuple() -> tuple[float, float, float] Return the vector components as a tuple. .. py:method:: normalized() -> Vec3 Return a unit-length copy of this vector. Near-zero length returns ``Vec3(0, 0, 0)``. .. py:method:: sphere(radius: float, lat: float, lng: float) -> Vec3 :classmethod: Point on a sphere centered at the origin. ``lat`` is latitude in radians (``-pi/2`` at the south pole, ``+pi/2`` at the north pole). ``lng`` is longitude in radians.