MCPcopy Create free account
hub / github.com/LARG/HFO / angleDistToPoint

Method angleDistToPoint

src/feature_extractor.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void FeatureExtractor::angleDistToPoint(const rcsc::Vector2D &self,
135 const rcsc::Vector2D &point,
136 float &ang, float &dist) {
137 Vector2D d = point - self;
138 ang = d.th().radian();
139 dist = d.r();
140}
141
142float FeatureExtractor::angleBetween3Points(const rcsc::Vector2D &point1,
143 const rcsc::Vector2D &centerPoint,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected