/**
* Author: Ulf Lundstrom
* Date: 2009-04-11
* License: CC0
* Source: http://en.wikipedia.org/wiki/Circumcircle
* Description:\\
\begin{minipage}{75mm}
The circumcirle of a triangle is the circle intersecting all three vertices. ccRadius returns the radius of the circle going through points A, B and C and ccCenter returns the center of the same circle.
\end{minipage}
\begin{minipage}{15mm}
\vspace{-2mm}
\includegraphics[width=\textwidth]{src/geometry/circumcircle}
\end{minipage}
* Status: tested
*/#pragma once
#include"src/geometry/Point.h"typedefPoint<double>P;doubleccRadius(constP&A,constP&B,constP&C){return(B-A).dist()*(C-B).dist()*(A-C).dist()/abs((B-A).cross(C-A))/2;}PccCenter(constP&A,constP&B,constP&C){Pb=C-A,c=B-A;returnA+(b*c.dist2()-c*b.dist2()).perp()/b.cross(c)/2;}
Traceback(mostrecentcalllast):File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/documentation/build.py",line71,in_render_source_code_statbundled_code=language.bundle(stat.path,basedir=basedir,options={'include_paths':[basedir]}).decode()~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/languages/cplusplus.py",line187,inbundlebundler.update(path)~~~~~~~~~~~~~~^^^^^^File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py",line312,inupdateraiseBundleErrorAt(path,i+1,"#pragma once found in a non-first line")onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt:src/geometry/circumcircle.h:line16:#pragmaoncefoundinanon-firstline