SFML.Net
ShapeGetGlobalBounds Method |
Get the global bounding rectangle of the entity.
The returned rectangle is in global coordinates, which means
that it takes in account the transformations (translation,
rotation, scale, ...) that are applied to the entity.
In other words, this function returns the bounds of the
sprite in the global 2D world's coordinate system.
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public FloatRect GetGlobalBounds()
Public Function GetGlobalBounds As FloatRect
public: FloatRect GetGlobalBounds()
member GetGlobalBounds : unit -> FloatRect
Return Value
Type: FloatRectGlobal bounding rectangle of the entity
