Are you a direct descendant of that person?
Both routes run down the direct line: child, grandchild, great-grandchild and onwards, with no limit. Other relatives are outside them. If you are unsure, the birth certificates for the generations in between will show it.