Skip to content

Home > @esengine/ecs-framework-monorepo > Rectangle > contains

Rectangle.contains() method

检查是否包含指定坐标

Signature:

typescript
contains(x: number, y: number): boolean;

Parameters

Parameter

Type

Description

x

number

X坐标

y

number

Y坐标

Returns:

boolean

是否包含

基于 MIT 许可证发布