<commit_before>-- geometry/uvsphere.t
--
-- creates "UV" (lat/lon) spheres

local m = {}

local math = require("math")
local Vector = math.Vector

-- the "plate carree" projection, a special case of equirectangular
function m.plate_carree(lat, lon)
  local u = 1.0 - (lon / (2*math.pi) + 0.5) -- map [-pi,pi]     => [1,0]<commit_msg>fix uvsphere uv coordinates<commit_after>-- geometry/uvsphere.t
--
-- creates "UV" (lat/lon) spheres

local m = {}

local math = require("math")
local Vector = math.Vector

-- the "plate carree" projection, a special case of equirectangular
function m.plate_carree(lat, lon)
  local u = 1.0 - (lon / (2*math.pi)) -- map [0,2pi]     => [1,0]
{'fraction_non_alphanumeric': 0.16790490341753342, 'fraction_numerical': 0.020802377414561663, 'mean_word_length': 3.3766233766233764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6623856', 'n_tokens_mistral': 253, 'n_tokens_neox': 239, 'n_words': 71}