Graphic Design and Mathematical Concepts (CSC290)

Computer Science - COS

Semester: First Semester

Level: 300

Year: 2015

1
HTTTC Bambili Computer Science Department
FIRST SEMESTER EXAM
COURSE: Graphic design mathematical concepts
Level 200 FCS
2014-2015 academic year
Exercise 1: Let us consider the scheme below, where
󰇛


󰇜
,
󰇛

󰇜
,
󰇛


󰇜
,

and , are positive real constant numbers. Let us consider the distances
 and
. Drawing a
line is for the computer, to decide from pixel (i,i), what pixel should be illuminated between (i+1,i) or
(i+1,i+1).
a) What pixel will be illuminated when
?
b) What pixel will be illuminated when
?
c) Give the expression of
and
in term of
and

d) Give the expression of
and
in term of
and
e) Let us assume that




and
󰇛
󰇜
e.1 Demonstrate that


and give the expression of C
e.2 Demonstrate that
)(22
11 iiii
yyxyPP +=
++
e.3 Demonstrate that
 
e.4 Deduce the Bresenham algorithm.
Exercise 2: One defines a Bézier curve with 4 points
1
P
,
2
P
and
3
P
a) Demonstrate by using the De Casteljau recursive definition that the coordinates of a point M can be
written as:
( )
=
3
2
1
012
0 0 1
2 2 2-
1 2- 1
t ),,(
P
P
P
ttzyx
An give the expression of the Bertstein polynomials
)(
2
tB
i
(i=0,1,2).
b) Do again this demonstration by using Bernstein polynomial defined as:
( )
in
ii
n
tt
ini
n
tB
= 1
)!(!
!
)(
. You should take:
=
+
=
n
i
i
i
n
PtBtM
0
1
)()(
b) Demonstrate that
c) Give the linear expression of x(t), y(t) and z(t)
www.schoolfaqs.net