Question about trig functions

So I’ve been messing around with the trig functions for a bit, and I worked on a head to camera movement sort of thing, and got it working.
HOWEVER
My question is this.
Why did math.asin() work inside the angle finder functions instead of acos or atan?


local function getAngle()
	return math.asin(alignToLocal().LookVector.X)
end

game:GetService('RunService').RenderStepped:Connect(function()
	head.Neck.C0=CFrame.new(head.Neck.C0.X,yOffset,head.Neck.C0.Z)*CFrame.Angles(0,-getAngle(),0)
end)
2 Likes