@@ -73,8 +73,8 @@ private CameraPath(string path)
7373 ///
7474 /// Precondition: 0 <= key < Count.
7575 /// </summary>
76- /// <param name="key">the index of the path entry to be returned</param>
77- /// <returns>key 'th entry in the path</returns>
76+ /// <param name="key">The index of the path entry to be returned. </param>
77+ /// <returns>Key 'th entry in the path. </returns>
7878 public PathData this [ int key ]
7979 {
8080 get => data [ key ] ;
@@ -85,9 +85,9 @@ public PathData this[int key]
8585 /// Adds the data captured about a particular camera position and rotation in a path
8686 /// at a given point in time.
8787 /// </summary>
88- /// <param name="position">position of the camera</param>
89- /// <param name="rotation">rotation of the camera</param>
90- /// <param name="time">point in time in seconds since game start</param>
88+ /// <param name="position">Position of the camera. </param>
89+ /// <param name="rotation">Rotation of the camera. </param>
90+ /// <param name="time">Point in time in seconds since game start. </param>
9191 public void Add ( Vector3 position , Quaternion rotation , float time )
9292 {
9393 data . Add ( new PathData ( position , rotation , time ) ) ;
@@ -102,7 +102,7 @@ public void Add(Vector3 position, Quaternion rotation, float time)
102102 /// vector, the second three entries the rotation in Euler angles, and the
103103 /// the last entry contains the time. Each value is a float.
104104 /// </summary>
105- /// <param name="filename">name of the output file</param>
105+ /// <param name="filename">Name of the output file. </param>
106106 public void Save ( string filename )
107107 {
108108 List < string > outputs = new ( ) ;
@@ -129,8 +129,8 @@ public void Save(string filename)
129129 /// Converts a float value to a string with two digits and a period as a
130130 /// decimal separator.
131131 /// </summary>
132- /// <param name="value">the value to be converted</param>
133- /// <returns>the float as a string in the requested format</returns>
132+ /// <param name="value">The value to be converted. </param>
133+ /// <returns>The float as a string in the requested format. </returns>
134134 private static string FloatToString ( float value )
135135 {
136136 return value . ToString ( "0.0" , System . Globalization . CultureInfo . InvariantCulture ) ;
@@ -164,7 +164,7 @@ private static string FloatToString(float value)
164164 ///
165165 /// May throw any exception that can be thrown by System.IO.File.ReadAllLines.
166166 /// </summary>
167- /// <param name="filename">name of the file containing the path data</param>
167+ /// <param name="filename">Name of the file containing the path data. </param>
168168 public static CameraPath ReadPath ( string filename )
169169 {
170170 string [ ] data = System . IO . File . ReadAllLines ( filename ) ;
@@ -212,7 +212,7 @@ public static CameraPath ReadPath(string filename)
212212 ///
213213 /// Implements interface IEnumerable.
214214 /// </summary>
215- /// <returns>an enumerator over all path data entries in the path</returns>
215+ /// <returns>An enumerator over all path data entries in the path. </returns>
216216 public IEnumerator GetEnumerator ( )
217217 {
218218 return data . GetEnumerator ( ) ;
@@ -225,7 +225,7 @@ public IEnumerator GetEnumerator()
225225 /// this direction. The whole path data is created as a single static root game object tagged
226226 /// by Tags.Path whose children represent the movements and the lookouts.
227227 /// </summary>
228- /// <returns>game object representing the path</returns>
228+ /// <returns>Game object representing the path. </returns>
229229 public GameObject Draw ( )
230230 {
231231 GameObject result = new ( string . IsNullOrEmpty ( path ) ? "anonymous path" : path )
@@ -247,8 +247,8 @@ public GameObject Draw()
247247 /// the direction the camera has looked in this path group. The length of this line
248248 /// is proportional to the sum over all times of the elements of a path group.
249249 /// </summary>
250- /// <param name="pathGameObject">the parent the game objects created here are to become
251- /// children of</param>
250+ /// <param name="pathGameObject">The parent the game objects created here are to become
251+ /// children of. </param>
252252 private void DrawLookOuts ( GameObject pathGameObject )
253253 {
254254 int i = 0 ;
@@ -295,10 +295,10 @@ private void DrawLookOuts(GameObject pathGameObject)
295295 /// of their co-ordinates are not greater than the given allowed difference.
296296 /// Returns 1 or -1, respectively, if the vectors are not similar enough.
297297 /// </summary>
298- /// <param name="me">one vector to be compared</param>
299- /// <param name="other">other vector to be compared against the first one</param>
300- /// <param name="allowedDifference">allowable difference between co-ordinates</param>
301- /// <returns>0 if similar, -1 or 1 if dissimilar</returns>
298+ /// <param name="me">One vector to be compared. </param>
299+ /// <param name="other">Other vector to be compared against the first one. </param>
300+ /// <param name="allowedDifference">Allowable difference between co-ordinates. </param>
301+ /// <returns>0 if similar, -1 or 1 if dissimilar. </returns>
302302 private static int CompareTo ( Vector3 me , Vector3 other , float allowedDifference )
303303 {
304304 {
@@ -334,8 +334,8 @@ private static int CompareTo(Vector3 me, Vector3 other, float allowedDifference)
334334 /// The order of the resulting aggregated path is arbitrary. It will not be consistent
335335 /// with the order of the given path.
336336 /// </summary>
337- /// <param name="path"></param>
338- /// <returns>path aggregation</returns>
337+ /// <param name="path">. </param>
338+ /// <returns>Path aggregation. </returns>
339339 private static List < PathData > Aggregate ( List < PathData > path )
340340 {
341341 if ( path . Count <= 1 )
@@ -385,10 +385,10 @@ private static List<PathData> Aggregate(List<PathData> path)
385385 /// Compares the first argument against the second one based on the similarity
386386 /// of their position and rotation (ignoring time).
387387 /// </summary>
388- /// <param name="x">first argument</param>
389- /// <param name="y">second argument to be compared to the first argument</param>
388+ /// <param name="x">First argument. </param>
389+ /// <param name="y">Second argument to be compared to the first argument. </param>
390390 /// <returns>0 if x and y are similar, 1 if x is before y, otherwise -1 (the 'before'
391- /// relation is arbitrary)</returns>
391+ /// relation is arbitrary). </returns>
392392 private static int CompareTo ( PathData x , PathData y )
393393 {
394394 // The following value defines the difference below we still consider two
@@ -410,7 +410,7 @@ private static int CompareTo(PathData x, PathData y)
410410 /// is created as a line rendering becoming a component of the given object
411411 /// representing the path.
412412 /// </summary>
413- /// <param name="pathGameObject"></param>
413+ /// <param name="pathGameObject">. </param>
414414 private void DrawPath ( GameObject pathGameObject )
415415 {
416416 LineRenderer line = pathGameObject . AddComponent < LineRenderer > ( ) ;
@@ -444,8 +444,8 @@ private void DrawPath(GameObject pathGameObject)
444444 /// <summary>
445445 /// Returns <paramref name="v"/> as a string for debugging.
446446 /// </summary>
447- /// <param name="v">vector to be turned into a string</param>
448- /// <returns><paramref name="v"/> as a string</returns>
447+ /// <param name="v">Vector to be turned into a string. </param>
448+ /// <returns><paramref name="v"/> as a string. </returns>
449449 private static string Dump ( Vector3 v )
450450 {
451451 return ( "(" + v . x . ToString ( "0.00000" )
0 commit comments