C# Класс Nez.PhysicsShapes.Shape

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
clone ( ) : Shape
collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool
collidesWithShape ( Shape other, CollisionResult &result ) : bool
containsPoint ( Vector2 point ) : bool
overlaps ( Shape other ) : bool
pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool

Приватные методы

Метод Описание
recalculateBounds ( Collider collider ) : void

Описание методов

clone() публичный Метод

public clone ( ) : Shape
Результат Shape

collidesWithLine() публичный абстрактный Метод

public abstract collidesWithLine ( Vector2 start, Vector2 end, RaycastHit &hit ) : bool
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
hit RaycastHit
Результат bool

collidesWithShape() публичный абстрактный Метод

public abstract collidesWithShape ( Shape other, CollisionResult &result ) : bool
other Shape
result CollisionResult
Результат bool

containsPoint() публичный абстрактный Метод

public abstract containsPoint ( Vector2 point ) : bool
point Microsoft.Xna.Framework.Vector2
Результат bool

overlaps() публичный абстрактный Метод

public abstract overlaps ( Shape other ) : bool
other Shape
Результат bool

pointCollidesWithShape() публичный абстрактный Метод

public abstract pointCollidesWithShape ( Vector2 point, CollisionResult &result ) : bool
point Microsoft.Xna.Framework.Vector2
result CollisionResult
Результат bool