More on 180 Rule - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

More on 180 Rule

Description:

More on 180 Rule. Bala Muralikrishnan. Dept of MEES, UNCC. 180 rule ... If (theta(p2)-theta(index) pi) p1 = index. else. p3 = p2; p2 = p1; p1 = index. end. p1 ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 6
Provided by: bala
Category:
Tags: mees | more | rule

less

Transcript and Presenter's Notes

Title: More on 180 Rule


1
More on 180 Rule
  • Bala Muralikrishnan
  • Dept of MEES, UNCC

2
180 rule
  • function p1,p2,p3 oneeightyrule(p1,p2,p3,index
    )
  • There are four cases to consider here
  • Case 1
  • if (index lt p1)
  • If (theta(p2)-theta(index)ltpi)
  • p1 index
  • else
  • p3 p2
  • p2 p1
  • p1 index
  • end

p1
index
p2
p3
3
180 rule
  • Case 2
  • elseif (index lt p2)
  • If (theta(p3)-theta(index)ltpi)
  • p2 index
  • else
  • ??
  • end

index
p2
p1
p3
index
p1
p2
p3
4
180 rule
  • Case 3
  • elseif (index lt p3)
  • If (theta(index)-theta(p1)ltpi)
  • ??
  • else
  • ??
  • end

p2
p1
index
p3
p2
p1
index
p3
5
180 rule
  • Case 4
  • Else if (index gt p3)
  • If (theta(index)-theta(p2)ltpi)
  • ??
  • else
  • ??
  • end
  • end

p2
p1
p3
index
p1
p2
index
p3
Write a Comment
User Comments (0)
About PowerShow.com