How to create Cs Polyon with Chord Length?

hi all see below code i can create polgon by radius but how can i create polgon with chord length??

{
cp = Point.ByCoordinates(0,0);
p = Circle.ByCenterPointRadius(cp,50);
Polygon.RegularPolygon(p,3);
}download

hi @jbo thanks for replay it works