publicstatic Vector2 Perpendicular(Vector2 original)
{
//To create a perpendicular vector switch X and Y, then make Y negativefloat x = original.X;
float y = original.Y;
y = -y; // 或者 x = -x,分别是+pi/2和-pi/2的效果
returnnew Vector2(y, x);
}
posted on
2013-08-03 22:55The_Fake
阅读(788)
评论(0)
收藏举报