contains

operator fun contains(point: Vector3): Boolean(source)

Checks if the specified point is contained within the sphere.

A point is considered to be inside the sphere if the squared distance from the point to the sphere's center is less than the square of the sphere's radius. If the sphere is defined as INFINITY, this function always returns true.

Return

true if the point is inside the sphere or if the sphere is INFINITY, false otherwise.

Parameters

point

The Vector3 representing the point to check.