boolean function ( DirectPosition arg0 ) { if ( center . distance ( new DirectPosition2D ( arg0 ) ) < ( this . radius - tolerance ) ) { return true ; } else { return false ; } }
the contains test whether the coordinate p is within the circle . triangle contains coordinate if the distance between center and p is smaller then the radius that is reduced by tolerance . this is used for triangulation when there are four points on one circle to avoid neverending loop . concode_field_sep DirectPosition2D center concode_elem_sep double radius concode_elem_sep double tolerance concode_field_sep DirectPosition getCenter concode_elem_sep double getTolerance concode_elem_sep void setCenter concode_elem_sep double getRadius concode_elem_sep void setRadius concode_elem_sep void setTolerance