Presentation is loading. Please wait.

Presentation is loading. Please wait.

Points, Vectors, Lines, Spheres and Matrices

Similar presentations


Presentation on theme: "Points, Vectors, Lines, Spheres and Matrices"— Presentation transcript:

1 Points, Vectors, Lines, Spheres and Matrices
©Anthony Steed

2 Overview Points Vectors Lines Spheres Matrices
3D transformations as matrices Homogenous co-ordinates

3 Basic Maths In computer graphics we need mathematics both for describing our scenes and also for performing operations on them, such as projection and various transformations. Coordinate systems (right- and left-handed), serve as a reference point. 3 axes labelled x, y, z at right angles.

4 Co-ordinate Systems Y Y X X Z Z Right-Handed System Left-Handed System
(Z comes out of the screen) Left-Handed System (Z goes in to the screen)

5 Points, P (x, y, z) Gives us a position in relation to the origin of our coordinate system

6 Vectors, V (x, y, z) Represent a direction (and magnitude) in 3D space
Points != Vectors Vector +Vector = Vector Point – Point = Vector Point + Vector = Point Point + Point = ?

7 Vectors, V (x, y, z) w v 2v v (1/2)V v + w (-1)v Vector addition
sum v + w Scalar multiplication of vectors (they remain parallel) x y w P v - w v v -w Vector difference v - w = v + (-w) O Vector OP

8 Vectors V Length (modulus) of a vector V (x, y, z)
A unit vector: a vector can be normalised such that it retains its direction, but is scaled to have unit length:


Download ppt "Points, Vectors, Lines, Spheres and Matrices"

Similar presentations


Ads by Google