29 #ifndef __MapDimensionProperties_h_ 30 #define __MapDimensionProperties_h_ 42 MapDimensionProperties(
const Eigen::Vector2f& topLeftOffsetIn,
const Eigen::Vector2i& mapDimensionsIn,
float cellLengthIn)
47 mapLimitsf = (mapDimensionsIn.cast<
float>()).array() - 1.0f;
67 return ((coords[0] < 0.0
f) || (coords[0] >
mapLimitsf[0]) || (coords[1] < 0.0
f) || (coords[1] >
mapLimitsf[1]));
73 mapLimitsf = (newDims.cast<
float>()).array() - 2.0f;
const Eigen::Vector2i & getMapDimensions() const
void setMapCellDims(const Eigen::Vector2i &newDims)
bool operator==(const MapDimensionProperties &other) const
bool hasEqualDimensionProperties(const MapDimensionProperties &other) const
bool pointOutOfMapBounds(const Eigen::Vector2f &coords) const
Eigen::Vector2f topLeftOffset
const Eigen::Vector2f & getTopLeftOffset() const
void setTopLeftOffset(const Eigen::Vector2f &topLeftOffsetIn)
float getCellLength() const
Eigen::Vector2i mapDimensions
bool hasEqualTransformationProperties(const MapDimensionProperties &other) const
Eigen::Vector2f mapLimitsf
void setCellLength(float cl)
MapDimensionProperties(const Eigen::Vector2f &topLeftOffsetIn, const Eigen::Vector2i &mapDimensionsIn, float cellLengthIn)