Beispiel #1
0
 /// <summary>
 /// Creates a new capsule object.
 /// </summary>
 /// <param name="segment">Line segment along which the capsule lies.</param>
 /// <param name="radius">Radius that defines the distance of the capsule from its line segment.</param>
 public Capsule(LineSegment segment, float radius)
 {
     this.segment = segment;
     this.radius = radius;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new capsule object.
 /// </summary>
 /// <param name="segment">Line segment along which the capsule lies.</param>
 /// <param name="radius">Radius that defines the distance of the capsule from its line segment.</param>
 public Capsule(LineSegment segment, float radius)
 {
     this.segment = segment;
     this.radius  = radius;
 }