math docs
    Preparing search index...

    Function toVec3

    • Converts spherical coordinates to a Cartesian Vec3 (Three.js / OpenGL convention): x = r * sin(phi) * sin(theta) y = r * cos(phi) z = r * sin(phi) * cos(theta)

      Parameters

      • out: vec3.Vec3

        the receiving Vec3

      • a: readonly [number, number, number]

        the source Spherical

      Returns vec3.Vec3

      out