Click or drag to resize
EntityIsTouching Method
Test if a given point is inside entity's boundaries.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual bool IsTouching(
	Vector2 point
)

Parameters

point
Type: Vector2
Point to test.

Return Value

Type: Boolean
True if point is in entity's boundaries (destination rectangle)
Remarks
This function result is affected by the 'UseActualSizeForCollision' flag.
See Also