<commit_before>---
-- @module Vector3Utils

local Vector3Utils = {}

function Vector3Utils.fromVector2XY(vector2)
	return Vector3.new(vector2.x, vector2.y, 0)
end

function Vector3Utils.fromVector2XZ(vector2)
	return Vector3.new(vector2.x, 0, vector2.y)
end


return Vector3Utils<commit_msg>Angle from 2 unit vectors<commit_after>---
-- @module Vector3Utils

local Vector3Utils = {}

function Vector3Utils.fromVector2XY(vector2)
	return Vector3.new(vector2.x, vector2.y, 0)
end

function Vector3Utils.fromVector2XZ(vector2)
	return Vector3.new(vector2.x, 0, vector2.y)
end

function Vector3Utils.getAngleRad(offset, lookVector)
	if offset.magnitude == 0 then
		return nil
	end

	return math.acos(offset.unit:Dot(lookVector))
end

return Vector3Utils
{'fraction_non_alphanumeric': 0.1041388518024032, 'fraction_numerical': 0.049399198931909215, 'mean_word_length': 5.521739130434782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4876602', 'n_tokens_mistral': 277, 'n_tokens_neox': 266, 'n_words': 58}