Tan Ka Ju wrote:
Is their in Java any method to know is a line contains or inside an
arbitrary polygon or shape?
I'll let someone else answer this (as I'm not quite sure if VisAD can do
exactly what you want.) See further below...
Or is the any algorithm or mathematics
formula that can solve this problem?
Yes, there are.
Better, still, there is the JTS: "The JTS Topology Suite is an API of 2D
spatial predicates and functions."
Hope this helps.