Box2D.Common.Vec2.Set C# (CSharp) Method

Set() public method

Set the vector component-wise.
public Set ( float x, float y ) : Vec2
x float
y float
return Vec2
        public Vec2 Set(float x, float y)
        {
            X = x;
            Y = y;
            return this;
        }

Same methods

Vec2::Set ( Vec2 v ) : Vec2

Usage Example

Ejemplo n.º 1
0
        public static Transform MulTrans(Transform A, Transform B)
        {
            Transform C = new Transform();

            Rot.MulTransUnsafe(A.Q, B.Q, C.Q);
            pool.Set(B.P).SubLocal(A.P);
            Rot.MulTransUnsafe(A.Q, pool, C.P);
            return(C);
        }
All Usage Examples Of Box2D.Common.Vec2::Set