public static IRenderer ToRenderer(this IPin pin, PontoReferencia pontoInicial, PontoReferencia pontoFinal, Vector2 pontoInicialGlobal, Vector2 pontoFinalGlobal, IEngine2D engine) { var geoPos = pin.GetGeolocalizacao(); var pos = geoPos.ToScreenXY(pontoInicial, pontoFinal, pontoInicialGlobal, pontoFinalGlobal); return(new PinRenderer(pos, engine) { Cor = Color.FromHex("#313639") }); }