geom3d
IsTangent
test if a plane is tangent to a sphere
Calling Sequence
Parameters
Description
Examples
IsTangent(p, s)
p
-
plane
s
sphere
The routine returns true if the plane p is tangent to the sphere s; false if they are not; and FAIL if it is unable to reach a conclusion.
In case of FAIL, if the third optional argument is given, the condition that makes p tangent to s is assigned to this argument.
The command with(geom3d,IsTangent) allows the use of the abbreviated form of this command.
with⁡geom3d:
sphere⁡s,point⁡o,0,0,1,1
Find the condition that makes the plane a⁢x+b⁢y+c⁢z+d=0 tangent to the sphere s
assume⁡a≠0
plane⁡p,a⁢x+b⁢y+c⁢z+d=0,x,y,z
IsTangent⁡p,s,condition
IsTangent: "unable to determine if 1-abs(c+d)/(a^2+b^2+c^2)^(1/2) is zero"
FAIL
Hence, the condition is:
condition
1−c+da~2+b2+c2=0
See Also
geom3d[TangentPlane]
Download Help Document