Is it possible to cast a segment of polyline feature into a line feature??

Discussion created by Hariprasath88 on Aug 21, 2013
Latest reply on Aug 22, 2013 by doneill-esristaff
I would like to know If my touch is on a line or not. I could not figure out how to do it with polyline. If I can cast each segment into a line, then I can check it using "Y= mx + c". But I am not able to get individual segment from my polyline and I dont see any functions in the SDK to acheive this.
Does anyone have any idea on how to
1. Cast segment of polyline into a line?
2. Or, check if a point is on a polyline or not?

Any help is greatly appreciated.