fullscreen
timer
qrcode
plickers
selector
edit
reset

geometry crash course / review

COS 350 - Computer Graphics

geometry crash course / review

geometric types

segment

segment: set of points (line) between two points

\[ \tilde\p(t) = \tilde\a + t(\tilde\b - \tilde\a) \text{ with } t \in [0,1] \]

note: linear interpolation of points, parameterized by \(t\)

\[ \begin{array}{rclcl} \point{p}(t) & = & \point{a} + t(\point{b} - \point{a}) & = & \point{a} + t\vector{b} - t\vector{a} \\ & = & \point{a} - t\vector{a} + t\vector{b} & = & (1-t)\vector{a} + t\vector{b} \end{array} \]

ray

ray: infinite line from point in a given direction

\[ \point{p}(t) = \point{e} + t\direction{d}, \text{ with } t \in \rangeZeroInf \]

infinite plane

infinite plane

triangle

triangle baricentric coordinates

sphere

sphere

geometry crash course / review

frames

frame

coordinate system (aka frame)

\[ \frame{f}_{2D} = \{ \point{f}_o, \direction{f}_x, \direction{f}_y \} \qquad \frame{f}_{3D} = \{ \point{f}_o, \direction{f}_x, \direction{f}_y, \direction{f}_z \} \]

frame

point coords and vector coords are defined wrt a frame

changing frames

change of coordinate system from world (\(\frame{f}\)) to local (\(\frame{f}'\))

changing frames

change of coordinate system from local (\(\frame{f}'\)) to world (\(\frame{f}\))

changing frames

vector coords are defined wrt a frame


direction coords are defined wrt a frame

constructing frames

construct a frame from two arbitrary vectors \(\x'\), \(\y'\)


construct a frame from an arbitrary vector \(\z'\)

frame hierarchy

all frames are defined wrt to other frames (except world is defined wrt to itself)

objects with local frame

maths simplify to elegant equations when surfaces (ex: planes, triangles, spheres) are defined wrt a local coordinate system


transform surface to use frame

×