ab/ac = bd/dc 角平分线定理
#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
struct Point
{
double x,y;
}a,b,c,d;
double dis(Point a,Point b)
{
return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
int main()
{
scanf("%lf %lf",&a.x,&a.y);
scanf("%lf %lf",&b.x,&b.y);
scanf("%lf %lf",&c.x,&c.y);
double bcl = dis(b,c);
double acl = dis(a,c);
double abl = dis(a,b);
//cout<<bcl<<' '<<acl<<' '<<abl<<endl;
d.x = ( c.x - b.x ) * abl / ( acl + abl ) + b.x;
d.y = ( c.y - b.y ) * abl / ( acl + abl ) + b.y;
printf("%.2lf %.2lf\n",d.x,d.y);
//system("pause");
}