RegionMemberFunction
RegionMemberFunction[reg,…]
represents a function whose values give whether a point is in a region reg or not.
Details
- RegionMemberFunction works like Function.
- RegionMemberFunction is generated by RegionMember[reg].
- RegionMemberFunction[reg,…][{x,y,…}] gives True if the numerical point {x,y,…} is a member of the constant region reg where ConstantRegionQ[reg] is True.
Examples
open allclose allBasic Examples (1)
RegionMember for a region generates a RegionMemberFunction:
Scope (16)
Special Regions (5)
Use RegionMember to generate a RegionMemberFunction:
Apply it to a list of points to test membership:
Test for points within an Interval:
Apply it to a list of points to test membership:
Test for points within a Disk:
Apply it to a list of points to test membership:
Test for points within a Cylinder:
Formula Regions (3)
A union of two disks as an ImplicitRegion:
Apply it to a list of points to test membership:
A union of two cylinders as an ImplicitRegion:
Apply it to a list of points to test membership:
A disk represented as a ParametricRegion:
Mesh Regions (6)
MeshRegion in 1D:
Apply it to a list of points to test membership:
Apply it to a list of points to test membership:
Apply it to a list of points to test membership:
BoundaryMeshRegion in 1D:
Apply it to a list of points to test membership:
Apply it to a list of points to test membership:
MeshCoordinates are always members of the region:
Derived Regions (2)
RegionIntersection of two regions:
Applications (3)
Generate points on a region by filtering a uniform set of points:
Uniformly sample over the bounding box of the region:
Color points based on which region they belong to:
Create membership functions for each:
Generate points over a bounding box of both regions:
Use random points in a region to perform Monte Carlo integration:
Evaluate a function at each sample point and take their average:
Properties & Relations (1)
RegionMemberFunction is generated by RegionMember:
Possible Issues (1)
RegionMemberFunction can only be generated for ConstantRegionQ regions:
Text
Wolfram Research (2014), RegionMemberFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionMemberFunction.html.
CMS
Wolfram Language. 2014. "RegionMemberFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RegionMemberFunction.html.
APA
Wolfram Language. (2014). RegionMemberFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegionMemberFunction.html