LocatePoint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


PolyhedralSets

  

LocatePoint

  

find maximal dimensional face containing a point

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

LocatePoint(point, polyset)

Parameters

point

-

list of rationals, a point in the coordinate system of polyset

polyset

-

polyhedral set

Description

• 

This command finds the highest dimensional face of polyset that contains point.  A point in a set's interior will return polyset, while a point not in the set will return the empty set.

Examples

> 

with⁡PolyhedralSets:

A point inside the cube belongs to the trivial face that is the cube itself.

> 

c≔ExampleSets:-Cube⁡;origin_location≔LocatePoint⁡0,0,0,c

c≔{Coordinates:x1,x2,x3Relations:−x3≤1,x3≤1,−x2≤1,x2≤1,−x1≤1,x1≤1

origin_location≔{Coordinates:x1,x2,x3Relations:−x3≤1,x3≤1,−x2≤1,x2≤1,−x1≤1,x1≤1

(1)

A point on the side of the cube returns the face with dimension 2 that includes the point.

> 

cube_face≔LocatePoint⁡0,0,1,c

cube_face≔{Coordinates:x1,x2,x3Relations:x3=1,−x2≤1,x2≤1,−x1≤1,x1≤1

(2)
> 

Dimension⁡cube_face

2

(3)

A point outside of the cube returns the empty set.

> 

outside_cube≔LocatePoint⁡2,1,1,c

outside_cube≔{Coordinates:x1,x2,x3Relations:0≤−1

(4)
> 

IsEmpty⁡outside_cube

true

(5)

Compatibility

• 

The PolyhedralSets[LocatePoint] command was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

PolyhedralSets[IsEmpty]

PolyhedralSets[`in`]

PolyhedralSets[InteriorPoint]

PolyhedralSets[Dimension]

PolyhedralSets[Faces]

PolyhedralSets[PolyhedralSet]

PolyhedralSets