local Z=Vector3.new local h=math.max local S=math.pi local j=S*2 local y=tick local function f(Z,h)local y=(h-Z)%j return y>S and y-j or y end local function V(h,S)return Z(f(h.X,S.X),f(h.Y,S.Y),f(h.Z,S.Z))end


local Vector3_new = Vector3.new
local math_max = math.max
local PI = math.pi
local TAU = PI * 2
local tick = tick

local function DeltaAngle(current, target)
	local n = ((target - current) % TAU)
	return (n > PI and (n - TAU) or n)
end

local function DeltaAngleV3(p1, p2)
	return Vector3_new(DeltaAngle(p1.X, p2.X), DeltaAngle(p1.Y, p2.Y), DeltaAngle(p1.Z, p2.Z))
end
