AStarCollisionMap.QuadTree.CollisionTexture.PointToIndex C# (CSharp) 메소드

PointToIndex() 공개 메소드

Returns the index of a certain point.
public PointToIndex ( int x, int y ) : int
x int
y int
리턴 int
        public int PointToIndex(int x, int y)
        {
            return x + y * this.texture.Width;
        }