PointInCircle - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ComputationalGeometry

  

PointInCircle

  

determine if a point lies within a circle of three points accurately

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

PointInCircle( P1, P2, P3, P4 )

PointInCircle( M, locs )

Parameters

P1, P2, P3, P4

-

four points in real 2-D space given as lists or rtables of their coordinates

M

-

an array of point coordinates in 2-D space. Each point is a row in the array. M must be C_order and datatype=float[8]

locs

-

positive integer indices of the four rows of M to treat as input

Description

• 

This command returns a string describing the orientation of the fourth point relative to the circle formed by the first three points. If the fourth point is inside the circle then the command returns "inside". If the fourth point is outside then "outside" is returned. If all four points lie on a circle, then "boundary" is returned.

• 

The second calling sequence is designed for checking large collections of points without having to make copies of their values.

Examples

withComputationalGeometry:

a0,0;b1,1;c0,1;d0.5,1.25;e0.25,0.75;f1,0

a0,0

b1,1

c0,1

d0.5,1.25

e0.25,0.75

f1,0

(1)

plots:-displayplottools:-pointa,b,c,d,e,f,symbolsize=20,plots:-textplotd,d,align=above,left,plots:-textplote,e,align=above,left,plots:-textplotf,f,align=above,left,plottools:-circle12,12,sqrt22,style=line,axes=box

PointInCirclea,b,c,d

outside

(2)

PointInCirclea,b,c,e

inside

(3)

PointInCirclea,b,c,f

boundary

(4)

MArraya,b,c,d,e,datatype=float8,order=C_order

M0.0.1.1.0.1.0.5000000000000001.250000000000000.2500000000000000.750000000000000

(5)

PointInCircleM,1,2,3,5

inside

(6)

Compatibility

• 

The ComputationalGeometry[PointInCircle] command was introduced in Maple 2019.

• 

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

See Also

ComputationalGeometry[PointOrientation]