worked on signal-strength-estimation
add this information to grid nodes evaluate this information new test-cases
This commit is contained in:
@@ -48,8 +48,15 @@ struct GridPoint {
|
||||
return std::sqrt(dx*dx + dy*dy + dz*dz);
|
||||
}
|
||||
|
||||
/** cast to Point3 */
|
||||
operator Point3() const {return Point3(x_cm, y_cm, z_cm);}
|
||||
///** cast to Point3 */
|
||||
//operator Point3() const {return Point3(x_cm, y_cm, z_cm);}
|
||||
|
||||
/** convert to Point3 in centimeter */
|
||||
Point3 inCentimeter() const {return Point3(x_cm, y_cm, z_cm);}
|
||||
|
||||
/** convert to Point3 in meter */
|
||||
Point3 inMeter() const {return Point3(x_cm/100.0f, y_cm/100.0f, z_cm/100.0f);}
|
||||
|
||||
|
||||
/** cast to string */
|
||||
operator std::string() const {return "(" + std::to_string(x_cm) + "," + std::to_string(y_cm) + "," + std::to_string(z_cm) + ")";}
|
||||
|
||||
Reference in New Issue
Block a user