Scratch for Java

Hitbox::contains()

Checks if the hitbox contains a point.

Syntax

Java

.contains(x, y)

Parameters

Name Data Type Description
x double The x-coordinate of the point.
y double The y-coordinate of the point.

Return

boolean

contains()