Skip to content

Instantly share code, notes, and snippets.

View hasanbayatme's full-sized avatar
❤️
Perceiving Love

Hasan Bayat hasanbayatme

❤️
Perceiving Love
View GitHub Profile
@hasanbayatme
hasanbayatme / VectorExtensions.cs
Last active April 2, 2017 12:49
Convert Vectors in Right way using Extension method from any to any.
public static class VectorExtensions
{
public static Vector2 ToVector2 ( this Vector3 vector )
{
return (Vector2)vector;
}
public static Vector2 ToVector2 ( this Vector4 vector )
{