aboutsummaryrefslogtreecommitdiff
path: root/mapscalehandler.cpp
blob: e216a606b4e7dedf58aee8e4ea1806f5248994b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "mapscalehandler.h"

MapScaleHandler::MapScaleHandler()
    : m_sx(0.0f, 1.0f, 0.0f, 1.0f)
    , m_sy(0.0f, 1.0f, 0.0f, 1.0f)
{
}

void MapScaleHandler::scaleToMap(const arma::mat &Y)
{
    m_sx.setDomain(Y.col(0).min(), Y.col(0).max());
    m_sy.setDomain(Y.col(1).min(), Y.col(1).max());

    scaleChanged(m_sx, m_sy);
}