/**
* Author: Victor Lecomte, chilli
* Date: 2019-04-26
* License: CC0
* Source: https://vlecomte.github.io/cp-geo.pdf
* Description: Returns true iff p lies on the line segment from s to e.
* Use \texttt{(segDist(s,e,p)<=epsilon)} instead when using Point<double>.
* Status:
*/#pragma once
#include"src/geometry/Point.h"template<classP>boolonSegment(Ps,Pe,Pp){returnp.cross(s,e)==0&&(s-p).dot(e-p)<=0;}
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/OnSegment.h:line10:#pragmaoncefoundinanon-firstline