The two-point method is on the Info Box for the Object Tool.
Using that, all you need are to use the A and B variables of the object.
Beyond that.... we'd need a bit more detail of what you had in mind. I would say it's probably possible as long as all the points in question are contained inside that one object.
Tom Waltz