/// <summary> /// The same as SpriteAligned(Corner, float, float) but offset by a constant amount. /// </summary> /// <param name="spriteCorner"></param> /// <param name="proportionX"></param> /// <param name="proportionY"></param> /// <param name="offset"></param> /// <returns></returns> public static IPointLocator SpriteAligned(Corner spriteCorner, float proportionX, float proportionY, Point offset) { return(new AlignedSpriteLocator( Locators.AnimationBoundsPoint(proportionX, proportionY), Locators.SpriteBoundsPoint(spriteCorner), offset)); }
/// <summary> /// The same as SpriteAligned(Corner, Corner) but offset by a constant amount. /// </summary> /// <param name="spriteCorner"></param> /// <param name="animationCorner"></param> /// <param name="offset"></param> /// <returns></returns> public static IPointLocator SpriteAligned(Corner spriteCorner, Corner animationCorner, Point offset) { return(new AlignedSpriteLocator( Locators.AnimationBoundsPoint(animationCorner), Locators.SpriteBoundsPoint(spriteCorner), offset)); }