Corrected VIEW::ToScreen().
This commit is contained in:
parent
377942ed2a
commit
6ad6f0bde2
|
@ -234,11 +234,11 @@ VECTOR2D VIEW::ToScreen( const VECTOR2D& aCoord, bool aAbsolute ) const
|
|||
}
|
||||
|
||||
|
||||
double VIEW::ToScreen( double aCoord, bool aAbsolute ) const
|
||||
double VIEW::ToScreen( double aSize ) const
|
||||
{
|
||||
VECTOR2D t( aCoord, 0 );
|
||||
const MATRIX3x3D& matrix = m_gal->GetWorldScreenMatrix();
|
||||
|
||||
return ToScreen( t, aAbsolute ).x;
|
||||
return matrix.GetScale().x * aSize;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -282,11 +282,10 @@ public:
|
|||
|
||||
/**
|
||||
* Function ToScreen()
|
||||
* Converts a world space coordinate to a coordinate in screen space coordinates.
|
||||
* @param aCoord: the coordinate to be transformed.
|
||||
* @param aAbsolute: when true, aCoord is treated as a point, otherwise - as a direction (vector)
|
||||
* Converts a world space one dimensionsal size to a one dimensional size in screen space.
|
||||
* @param aCoord: the size to be transformed.
|
||||
*/
|
||||
double ToScreen( double aCoord, bool aAbsolute = true ) const;
|
||||
double ToScreen( double aSize ) const;
|
||||
|
||||
/**
|
||||
* Function GetScreenPixelSize()
|
||||
|
|
Loading…
Reference in New Issue