Skip to content
Snippets Groups Projects
Commit 69e5dd04 authored by Daniel Lorych's avatar Daniel Lorych :cookie:
Browse files

Merge branch '26-create-roof-class' into 'main'

Resolve "Create roof class"

Closes #26

See merge request d2-lorych/helios!9
parents 951438fd ebba98a8
Branches
No related tags found
No related merge requests found
using System;
namespace Helios.Models
{
public class Roof
{
public int Elevation { get; set; }
public double Area { get; set; }
public int SunAngle { get; set; }
public Roof(int elevation, double area)
{
this.Elevation = elevation;
this.Area = area;
}
public int GetElevationAngle(int sunAngle)
{
int elevationAngle;
elevationAngle = this.Elevation + sunAngle;
this.SunAngle = elevationAngle;
return elevationAngle;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment