Feeds
提问
How to generate random points within 3d pyramid inside a cuboid
P1: (0.000000e+00, 0.000000e+00, 0.000000e+00) P2: (0.000000e+00, 1.000000e+00, 0.000000e+00) P3: (1.000000e+00, 1.000000e...
7 years 前 | 0 个回答 | 0
0
个回答提问
How to find the normal to a hemisphere surface
How do i find the normal to a hemisphere surface with radius r = 6, and center point c = [2,1,3];
7 years 前 | 1 个回答 | 0
1
个回答已回答
how to generate random points located on the surface of a hemisphere with its center at (2, 1, 3) and a radius of 6?
N=5000; r = 6; center = [2,1,3]; P = zeros(N,3) ; plot3(center(1),center(2),center(3),'ro') hold on for i=1:N x1 = ra...
how to generate random points located on the surface of a hemisphere with its center at (2, 1, 3) and a radius of 6?
N=5000; r = 6; center = [2,1,3]; P = zeros(N,3) ; plot3(center(1),center(2),center(3),'ro') hold on for i=1:N x1 = ra...
7 years 前 | 0
| 已接受
提问
how to generate random points located on the surface of a hemisphere with its center at (2, 1, 3) and a radius of 6?
N=500; r = 6; center = [2,1,3]; plot3(center(1),center(2),center(3),'ro') hold on for i=1:N x1 = rand; x2 = rand;...
7 years 前 | 3 个回答 | 0
3
个回答提问
Why does my rand function not seem to work?
limit = 0.3266; s = 0; counter = 0; while 1 tmp = rand; disp(tmp) if tmp == limit break end ...
7 years 前 | 1 个回答 | 0

