8.5.3.3
Example
If a straight line is given by the points P
0
and P
1
then the values are calculated as
the following:
∆
∆
=
−
−
=
−
=
∆
y
x
y
y
x
x
p
p
p
0
1
0
1
0
1
The normal vector (perpendicular but not unit size) is then
∆
∆
−
=
x
y
n
The not normalized distance between edge and origin is then
x
y
y
x
n
p
∆
+
∆
−
=
0
0
0
The limiter parameters would be
x
yadd
y
xadd
x
y
y
x
start
∆
=
∆
−
=
∆
+
∆
−
=
0
0
In the normalized case normal vector is
2
2
/
y
x
x
y
n
∆
+
∆
∆
∆
−
=
The distance between edge and origin is
(
)
x
y
y
x
n
p
∆
+
∆
−
=
0
0
0
2
2
/
y
x
∆
+
∆
The limiter parameters would be
(
)
2
2
2
2
2
2
0
0
/
/
/
y
x
x
yadd
y
x
y
xadd
y
x
x
y
y
x
start
∆
+
∆
∆
=
∆
+
∆
∆
−
=
∆
+
∆
∆
+
∆
−
=
Normalization is only needed if antialiasing is used. The driver contains a
optimized inverse square root to speed up the normalization.
Chapter 8
Drawing Engine
230
Preliminary User's Manual S19203EE1V3UM00
Содержание uPD72257
Страница 39: ...Pin Functions Chapter 2 Preliminary User s Manual S19203EE1V3UM00 39...
Страница 44: ...Chapter 2 Pin Functions 44 Preliminary User s Manual S19203EE1V3UM00...
Страница 46: ...Chapter 2 Pin Functions 46 Preliminary User s Manual S19203EE1V3UM00...
Страница 49: ...Pin Functions Chapter 2 Preliminary User s Manual S19203EE1V3UM00 49...
Страница 52: ...Chapter 2 Pin Functions 52 Preliminary User s Manual S19203EE1V3UM00...
Страница 54: ...Chapter 2 Pin Functions 54 Preliminary User s Manual S19203EE1V3UM00...
Страница 331: ...External Memory Interface Controller Chapter 9 Preliminary User s Manual S19203EE1V3UM00 331...
Страница 343: ......