PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/SolarSystem.Wpf/Normalizer.cs

https://bitbucket.org/efouts/solarsystem
C# | 29 lines | 25 code | 4 blank | 0 comment | 0 complexity | 2c9d4bd260a899ff67d1ec8e67bf70ce MD5 | raw file
Possible License(s): BSD-3-Clause
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SolarSystem.Wpf
  6. {
  7. public class Normalizer
  8. {
  9. public Double RadiusRatio { get; private set; }
  10. public Double PositionRatio { get; private set; }
  11. public Normalizer(Double radiusRatio, Double positionRatio)
  12. {
  13. RadiusRatio = radiusRatio;
  14. PositionRatio = positionRatio;
  15. }
  16. public Double NormalizeRadius(Double value)
  17. {
  18. return value * RadiusRatio;
  19. }
  20. public Double NormalizePosition(Double value)
  21. {
  22. return value * PositionRatio;
  23. }
  24. }
  25. }