randpoint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

geom3d

  

randpoint

  

generate a random point in a given range, on a line, a plane, or a sphere

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

randpoint(w, x, y, z)

randpoint(w, obj, ...)

Parameters

w

-

the name of a random point

x

-

range

y

-

range

z

-

range

obj

-

line, plane, or sphere

Description

• 

The routine geom3d[randpoint](w, x, y, z) returns a point with the x-coordinate, y-coordinate, and z-coordinate in the interval specified by x, y, and z respectively.

• 

When the second argument is a line, a plane, or a sphere, geom3d[randpoint] returns a point on that geometric object.

• 

If the object obj is a line, and the third optional argument which is a range is given, w is a point of the line segment such that the parameter in the parametric equation of the line lies in that range.

• 

If the object obj is a sphere, and the optional third, fourth arguments which are ranges are given, w is in general the point with the x-coordinate and y-coordinate restricted inside these ranges.

Examples

withgeom3d:

randpointw,10..10,10..10,10..10:

coordinatesw

2209065349250000000,838744609500000000,244301281500000000

(1)

randpointA,10..10,10..10,10..10:

randpointB,10..10,10..10,10..10:

randpointC,10..10,10..10,10..10:

planep,A,B,C:

randpointw4,p:

coordinatesw4

806779818910000000000,17135386535000000000,203857859972347425739697258423146514179127009683876000000000

(2)

IsOnObjectw4,p

true

(3)

See Also

geom3d/objects

 


Download Help Document