targetVisibility property
Returns the visibility state between the target and observer locations. A value of 1 indicates a clear line of sight and 0 indicates that the target is not visible to the observer. If an error occurs during evaluation, NAN is returned.
The end point of LineOfSight.visibleLine and the start point of LineOfSight.notVisibleLine indicate the position at which the line of sight is first obstructed.