VectorMath.DVector2.FromAngle C# (CSharp) Method

FromAngle() public static method

public static FromAngle ( double angle ) : DVector2
angle double
return DVector2
        public static DVector2 FromAngle(double angle)
        {
            return new DVector2(Math.Cos(angle), Math.Sin(angle));
        }