コード例 #1
0
        protected override float GetY2()
        {
            TextureRegion textureRegion = this.GetTextureRegion();

            return((float)(textureRegion.GetTexturePositionY() + textureRegion.GetHeight()) / textureRegion.GetTexture().GetHeight());
        }
コード例 #2
0
        protected override float GetX2()
        {
            TextureRegion textureRegion = this.GetTextureRegion();

            return((float)(textureRegion.GetTexturePositionX() + textureRegion.GetWidth()) / textureRegion.GetTexture().GetWidth());
        }