Skip to main content

Circles and Spheres

  • Situation: Sphere surface versus solid-ball containment
  • Target: Sphere · Classification · Normal and closest surface point
  • Convention: Right-handed orthonormal frame; column vectors; rightmost matrix first; angles in radians unless marked °; lengths in m · Overview

Core concepts​

  • Sphere: points at radius r from center Q; solid ball including distances≤r; nonnegative scalar radius
sphere center radius surface point
Figure 1. sphere center radius surface point
  • Classification: squared distance compared with r²; equality as surface contact under the declared tolerance

  • Normal and closest surface point: radial unit direction from Q; center query with no unique radial direction for r>0

sphere surface normal radial direction
Figure 2. sphere surface normal radial direction
  • Transforms: translation moving center, rotation preserving shape, uniform scale k giving radius |k|r; general nonuniform scale producing ellipsoid
sphere to ellipsoid nonuniform scaling
Figure 3. sphere to ellipsoid nonuniform scaling
  • Measures: circle circumference2πr and disk areaπr²; sphere area4πr² and ball volume4πr³/3; units m,m²,m³ respectively

Worked example​

Shared sphere: Q=(2,2,3) m,r=2 m; points at z=4,5,6 give distance²1,4,9 m²; exterior point(2,2,6) → closest surface(2,2,5) m

∥P−Q∥2=r2,Psurface=Q+rP−Q∥P−Q∥(P≠Q),dsurface=∣∥P−Q∥−r∣\|P-Q\|^2=r^2,\qquad P_{\mathrm{surface}}=Q+r\frac{P-Q}{\|P-Q\|}\quad(P\ne Q),\qquad d_{\mathrm{surface}}=\big|\|P-Q\|-r\big|

Practice​

  • Preparation → prediction → calculation: Predict inside/on/outside; compute squared distances and closest surface point; test center query separately; retain Q,r for intersections
  • Record: Assumed exercise inputs; predictions before calculation; calculated answers and optional viewer output in separate columns; no physical measurements
CasePredictionCalculated resultViewer output (optional)
r=2: 4πr2r=2:\ 4\pi r^2
Q=(2,2,3), P=(2,2,6), r=2: dsurfaceQ=(2,2,3),\ P=(2,2,6),\ r=2:\ d_{surface}
r=2, k=−3: r′r=2,\ k=-3:\ r'
  • Optional extension: Double only x scale; center and semi-axes transformed separately

Exercises​

  1. Problem: r=2: 4πr2r=2:\ 4\pi r^2
  2. Problem: Q=(2,2,3), P=(2,2,6), r=2: dsurfaceQ=(2,2,3),\ P=(2,2,6),\ r=2:\ d_{surface}
  3. Problem: r=2, k=−3: r′r=2,\ k=-3:\ r'
  4. Problem: Closest surface point at the center, r>0
Answers and checks
  1. Answer: 16π m216\pi\ \mathrm{m^2}
  2. Answer: 1 m1\ \mathrm m
  3. Answer: 6 m6\ \mathrm m
  4. Answer: Every surface point equally close; distance r

Connections​