Math and vector utility functions. Math and vector utility functions. Returns a directional vector from the given orientation angle. This assumes orientation for 2D agents or 3D agents that are upright and rotate around the Y axis. Returns the vector with its length capped to limit. Returns a vector2 with vector's x and y components. Returns a vector3 with vector's x and y components and 0 in z. Returns an angle in radians between the positive X axis and the vector. Returns an angle in radians between the positive X axis and the vector. This assumes orientation for 3D agents that are upright and rotate around the Y axis.