示例#1
0
 /// <summary>
 /// This method takes a point and adds it to the Line to the list of points
 /// </summary>
 /// <param name="point">Point to be added to the line</param>
 public void add(Vec2 point)
 {
     Points.Add(point);
 }
示例#2
0
 /// <summary>
 /// This method calculates the dot product of the instance and another vector.
 /// </summary>
 /// <param name="other">The other vector for the calculation of the dot product</param>
 /// <returns>The dot product of this and the other vector</returns>
 public Vec2 dot(Vec2 other)
 {
     return(new Vec2(this.X * other.X, this.Y * other.Y));
 }