How to determine if the point is on the line

Hi guys,

Is there any method in the solidworks that determine if the point is lie or on the line or attached to the line? Any ideas or suggestion would be appreciated. Thanks in advance guys.

Regards,

Jhon

SolidworksApi macros