/
concept-collection
/
turing-surface-cache
Jump to
/
Appearance
Match my system
Paper
GitHub
Slate
Midnight
Terminal
Sign in
concept-collection
/
turing-surface-cache
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
1
Tags
0
Site
c2317d0
Branches
main
turing-surface-cache
/
geometries
/
ellipsoid.m
8 lines · 234 B
Copy
Copied
Blame
History
Raw
1
% A triaxial ellipsoid: the sphere with each axis scaled independently.
2
3
function [gx, gy, gz] = shape(theta, phi, ax, ay, az)
4
st = sin(theta);
5
gx = ax * (st .* cos(phi));
6
gy = ay * (st .* sin(phi));
7
gz = az * cos(theta);
8
end
↑
↓
move
↵
open
esc
close