Documented RaceMap

- Added Constructor Documentation for RaceMap
#documentation
main
Fan-Wu Yang 9 years ago
parent 4e94da5e49
commit 3f55a45362

@ -22,7 +22,6 @@
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" /> <outputRelativeToContentRoot value="true" />
<processorPath useClasspath="true" /> <processorPath useClasspath="true" />
<module name="team-7" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>
<bytecodeTargetLevel> <bytecodeTargetLevel>

@ -21,13 +21,6 @@
<option name="OPEN_IN_BROWSER" value="true" /> <option name="OPEN_IN_BROWSER" value="true" />
<option name="OPTION_INCLUDE_LIBS" value="false" /> <option name="OPTION_INCLUDE_LIBS" value="false" />
</component> </component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>

@ -7,6 +7,15 @@ public class RaceMap {
private double x1, x2, y1, y2; private double x1, x2, y1, y2;
private int width, height; private int width, height;
/**
* Contructor Method.
* @param x1 Latitude of the top left point.
* @param y1 Longitude of the top left point.
* @param x2 Latitude of the top right point.
* @param y2 Longitude of the top right point.
* @param width width that the Canvas the race is to be drawn on is.
* @param height height that the Canvas the race is to be drawn on is.
*/
public RaceMap(double x1, double y1, double x2, double y2, int width, int height) { public RaceMap(double x1, double y1, double x2, double y2, int width, int height) {
this.x1 = x1; this.x2 = x2; this.y1 = y1; this.y2 = y2; this.width = width; this.height = height; this.x1 = x1; this.x2 = x2; this.y1 = y1; this.y2 = y2; this.width = width; this.height = height;
} }

Loading…
Cancel
Save