user1198477
user1198477

Reputation: 53

representing a point inside a cylinder using Mathematica

How to plot a point {x1,y1,z1} inside a cylinder having end points as A = {x,y,z} and B = {x',y',z'} and having radius r, using Mathematica? An example will be appreciated with a diagram

Upvotes: 0

Views: 398

Answers (1)

Szabolcs
Szabolcs

Reputation: 25703

You can use something similar to

Graphics3D[
 {{PointSize[0.03], Point[{0, 0, 0}]},
  {Opacity[0.5], Cylinder[{{-1, -1, -1}, {1, 1, 1}}, 0.5]}}
 ]

Mathematica graphics

Upvotes: 2

Related Questions