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

Set() public method

Set this vector to another vector.
public Set ( Vec2 v ) : Vec2
v Vec2
return Vec2
        public Vec2 Set(Vec2 v)
        {
            X = v.X;
            Y = v.Y;
            return this;
        }

Same methods

Vec2::Set ( float x, float y ) : Vec2

Usage Example

Beispiel #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