14.8.2 Rhombuses in space: rhombus
See Section 13.9.2 for rhombuses in the plane.
The rhombus command returns and draws a rhombus. It takes it
arguments in different ways.
Three points:
-
rhombus takes three mandatory arguments and two
optional arguments:
-
A,B,P, three points.
- Optionally, var1,var2, two variable names.
- rhombus(A,B,P ⟨var1,var2⟩)
returns and draws the rhombus ABCD, which is in the plane ABP,
oriented so that angle BAP is positive, and D is on the ray
AP.
If the arguments var1 and var2 are given, they
will be assigned to the vertices C and D.
Example.
Input:
A:= point(0,0,0); |
B:= point(3,3,3); |
P:= point(0,0,3) |
rhombus(A,B,P)
|
Output:
Three points and a real number.
-
rhombus takes three mandatory arguments and two
optional argument:
-
A,B, two points.
- [P,a], a list consisting of a point P and a real number
a.
- Optionally, var1,var2, two variable names.
- rhombus(A,B,[P,a] ⟨var1,var2⟩)
returns and draws the rhombus ABCD, which is in the plane ABP,
oriented so that angle BAP is positive, and angle BAD equals
a.
If the arguments var1 and var2 are given, they
will be assigned to the vertices C and D.
Examples.
-
Input:
A:= point(0,0,0); |
B:= point(3,3,3); |
P:= point(0,0,3) |
rhombus(A,B,[P,pi/3])
|
Output:
- Input:
rhombus(A,B,[P,pi/3],C,D) |
simplify(coordinates(C)), simplify(coordinates(D))
|
Output:
⎡
⎢
⎢
⎣ | | , | | , | | ⎤
⎥
⎥
⎦ | , | ⎡
⎢
⎢
⎣ | | , | | , | | ⎤
⎥
⎥
⎦ |