Box2DX.Common.Vec2.Set C# (CSharp) Метод

Set() публичный Метод

Set this vector to some specified coordinates.
public Set ( float x, float y ) : void
x float
y float
Результат void
        public void Set(float x, float y)
        {
            X = x; Y = y;
        }

Usage Example

Пример #1
0
        public static Vec2 Cross(float s, Vec2 a)
        {
            Vec2 result = default(Vec2);

            result.Set(-s * a.Y, s * a.X);
            return(result);
        }
All Usage Examples Of Box2DX.Common.Vec2::Set