I have an ellipse :
$$x = h + a\cos t \cos\theta - b\sin t \sin\theta \\ y = k + b\sin t \cos\theta - a\cos t \sin\theta$$
Let's say if we have a normal vector $n$ to the ellipse, on a point $p$ (also on the ellipse). Is there a formula to calculate if $n$ points towards the center $(h,k)$ or away from it? (As in the vector points inwards, rather than outwards).
Center coordinate is $C(h,k)$ and $P(x_0,y_0)$ so the slope of the line that contains this two point is $$m=\frac{y_0-k}{x_0-h}$$ The slope of the tangent (which your vector is also perp. to it) to the ellipse at $P$ is $$(\frac{dy}{dx})_{x_0,y_0}$$ which is equal to $$\frac{dy}{dt} \div \frac{dx}{dt}$$ Theese two lines(first and the tangent) shoul be perpendicular for your question so the product of slopes should be $-1$ $$(\frac{dy}{dx})_{x_0,y_0} = -\frac{x_0-h}{y_0-k}$$ Take the derivative and put your point into the equation.