WLJS LogoWLJS Notebook

RegionWithin

RegionWithin[reg1, reg2] returns True if reg2 is contained within reg1.

Examples

Check if a smaller disk is within a larger disk:

RegionWithin[Disk[{0, 0}, 2], Disk[{0, 0}, 1]]
(* True *)

Check if regions do not contain each other:

RegionWithin[Disk[{0, 0}, 1], Disk[{2, 0}, 1]]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page