/ concept-collection / turing-surface-cache
Sign in
concept-collection / turing-surface-cache
turing-surface-cache / geometries / ellipsoid.m
8 lines · 234 BBlameHistoryRaw
1% A triaxial ellipsoid: the sphere with each axis scaled independently.
3function [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);
8end
moveopenescclose