Scenic.Primitive.contains_point-question-mark

You're seeing just the function contains_point-question-mark, go back to Scenic.Primitive module for more information.
Link to this function

contains_point?(primitive, point)

View Source

Specs

contains_point?(primitive :: t(), point :: Scenic.Math.point()) :: map()

Determines if a point is contained within a primitive.

The supplied point must already be projected into the local coordinate space of the primitive. In other words, this test does NOT take into account any transforms that have been applied to the primitive.

The input mechanism takes care of this for you by projecting incoming points by the inverse-matrix of a primitive before calling this function...

Note that some primitives, such as Group, do not inherently have a notion of containing a point. In those cases, this function will always return false.

Parameters:

  • primitive - The primitive
  • point - The point to test

Returns true or false.