Previous Up Next

27.10.4  Coordinates of a point, vector or line in space

See Section 26.12.4 for coordinates in 2D geometry.

The coordinates command takes finds the coordinates of a point.

Examples

coordinates(point(1,2,3))
     

1,2,3
          
coordinates(point(0,1,2),point(1,2,4))
     

0,1,2
,
1,2,4
          

Note that if the argument is a list of real numbers, it is interpreted as a list of points on the real axis of the plane.

coordinates([1,2,4])
     



10
20
40



          
coordinates(vector(point(1,2,3),point(2,4,7)))
     

1,2,4
          
coordinates(line(point(-1,1,0),point(1,2,3)))
     


−1,1,0
,
1,2,3

          
coordinates(line(x-2*y+3=0, 6*x+3*y-5*z+3=0))
     


−1,1,0
,
9,6,15

          

Previous Up Next