//////////////////////////////////////////////////////////// /// <summary> /// Construct the transformable from another transformable /// </summary> /// <param name="transformable">Transformable to copy</param> //////////////////////////////////////////////////////////// public Transformable(Transformable transformable) : base(IntPtr.Zero) { Origin = transformable.Origin; Position = transformable.Position; Rotation = transformable.Rotation; Scale = transformable.Scale; }
//////////////////////////////////////////////////////////// /// <summary> /// Construct the transformable from another transformable /// </summary> /// <param name="transformable">Transformable to copy</param> //////////////////////////////////////////////////////////// public Transformable(Transformable transformable) : base(IntPtr.Zero) { Origin = transformable.Origin; Position = transformable.Position; Rotation = transformable.Rotation; Scale = transformable.Scale; }
public TransformComponent(Vector2f position, float rotation) : base() { transform = new Transformable {Position = position, Rotation = rotation}; }