PlanBaseIsSpriteWithin Method |
Determines if the specified part of the specified sprite is within the plan's rectangle.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual bool IsSpriteWithin(
SpriteBase sprite,
RelativePosition RelativePosition
)
Parameters
- sprite
- Type: (Default Namespace)SpriteBase
Sprite whose position will be tested - RelativePosition
- Type: (Default Namespace)RelativePosition
Specifies a point within the sprite to test
Return Value
Type:
BooleanTrue if the specified point within the specified sprite's solidity rectangle is
within the plan's rectangle.
Remarks Unlike
IsSpriteTouching(SpriteBase), this can only return true when the sprite
and the plan's rectangle actually overlap because the point is inside the sprite's
rectangle, and must also be inside the plan's rectangle to return true.
See Also