public float Intersection(IntersectionModel input) { var p1 = input.P1; var p2 = input.P2; var corner1 = input.Corner1; var corner2 = input.Corner2; var corner3 = input.Corner3; var corner4 = input.Corner4; var resultObj = _vbFunctions.Intersection(ref p1, ref p2, ref corner1, ref corner2, ref corner3, ref corner4); var tryParse = float.TryParse(resultObj.ToString(), out float result); if (!tryParse) { throw new ArgumentException(); } return(result); }
public float Intersection(IntersectionModel input) { return(_speakerService.Intersection(input)); }