public static Vector2d createDirectionRad(double angle) {
        return new Vector2d(TrigMath.cos(angle), TrigMath.sin(angle));
    }
public static Vector2d createDirectionRad(double angle) {
        return new Vector2d(TrigMath.cos(angle), TrigMath.sin(angle));
    }
public static Vector2d createDirectionRad ( double angle ) { return new Vector2d ( TrigMath . cos ( angle ) , TrigMath . sin ( angle ) ) ; }
Gets the direction vector of a certain angle in radians.

@param angle in radians
@return the direction vector
Gets the direction vector of a certain angle in radians .