Umkehrfunktion von cot
-
Hey,
sorry, ich habe leider schon wieder ein Problem
Wie heißt in C++ die Umkerfunktion vom Cotangens (cot)
-
es gibt noch nicht mal cot. dann wirds erst recht keine umkehrfunktion geben.
-
acot(x) = PI/2 - atan(x)
MfG SideWinder
-
Ist mir auch gerade aufgefallen. Naja, mal das Problem: ich habe eine Projektionsmatrix, wo ich die einzelnen Werte rausfiltern möchte. Nach der DX-Doku ist eine Projektionsmatrix
xScale 0 0 0 0 yScale 0 0 0 0 zf/(zf-zn) 1 0 0 -zn*zf/(zf-zn) 0 where: yScale = cot(fovY/2) xScale = aspect ratio * yScale
Da dachte ich, cot wäre cotangens. Naja, wenn es das nicht gibt, was ist es dann?
-
SideWinder schrieb:
acot(x) = PI/2 - atan(x)
MfG SideWinder
Hey, danke. Du bist super... Ich will ein Kidn von dir...
-
Sorry, ich habe jetzt ein letztes Problem. Wie heißt nun die cot-Funktion richtig. Bzw, wie heißt die richtige Funktion von PI/2 - atan(x)???
-
cot ist schon ganz richtig der cotangens, also cot(x) = 1/tan(x) = cos(x)/sin(x)
und π/2 - atan ist der arcus cotangens, also die umkehrfunktion vom cotangens