MCPcopy
hub / github.com/pixijs/pixijs / containsPoint

Method containsPoint

src/scene/graphics/shared/Graphics.ts:241–244  ·  view source on GitHub ↗

* Checks if the object contains the given point. * Returns true if the point lies within the Graphics object's rendered area. * @example * ```ts * const graphics = new Graphics(); * * // Draw a shape * graphics * .rect(0, 0, 100, 100) * .fill({ co

(point: PointData)

Source from the content-addressed store, hash-verified

239 * @see {@link PointData} For point data structure
240 */
241 public override containsPoint(point: PointData)
242 {
243 return this._context.containsPoint(point);
244 }
245
246 /**
247 * Destroys this graphics renderable and optionally its context.

Callers

nothing calls this directly

Calls 1

containsPointMethod · 0.65

Tested by

no test coverage detected