MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / DrawArc

Method DrawArc

src/Tracker/graph/gport.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void GPostscriptPort::DrawArc (const GPoint &pt, const int radius,
38 const double startAngleDegrees, const double endAngleDegrees)
39{
40 PostscriptStream << "newpath" << std::endl;
41 PostscriptStream << pt.GetX() << " " << -pt.GetY()
42 << " " << radius
43 << " " << (360.0 -startAngleDegrees)
44 << " " << (360.0 - endAngleDegrees)
45 << " arcn" << std::endl;
46 PostscriptStream << "stroke" << std::endl;
47 PostscriptStream << std::endl;
48}
49
50
51void GPostscriptPort::DrawLine (const int x1, const int y1, const int x2, const int y2)

Callers

nothing calls this directly

Calls 2

GetXMethod · 0.80
GetYMethod · 0.80

Tested by

no test coverage detected