/
concept-collection
/
turing-surface
Jump to
/
Appearance
Match my system
Paper
GitHub
Slate
Midnight
Terminal
Sign in
concept-collection
/
turing-surface
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
12
Tags
0
Site
3210e7d
Branches
main
compare-against-sphere
compare-interface
reference-compare-mode
reference_soln
random-fields
flux-polar-conditioning
compare-solver-settings
reduced-transforms
solver-subroutines
add-preview-workflow
laplace_beltrami
turing-surface
/
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