コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkerSensor"/> class with a given buffer size.
 /// </summary>
 /// <param name="markerLocations">The object storing all world marker locations.</param>
 /// <param name="bufferLength">Length of the buffer</param>
 /// <param name="posDistType">The type of the distribution of the positions measurements</param>
 /// <param name="oriDistType">The type of the distribution of the orientation measurements</param>
 public MarkerSensor(MarkerLocations markerLocations, int bufferLength, IDistribution posDistType, IDistribution oriDistType)
     : this(markerLocations, posDistType, oriDistType)
 {
     this.bufferLength = bufferLength;
     this.orientations = new Measurement <Vector3> [this.bufferLength];
     this.positions    = new Measurement <Vector3> [this.bufferLength];
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkerSensor"/> class.
 /// </summary>
 /// <param name="markerLocations">The MarkerLocations object storing all markers.</param>
 /// <param name="posDistType">The type of probability distribution belonging to the measurements of the position.</param>
 /// <param name="oriDistType">The type of probability distribution belonging to the measurements of the orientation.</param>
 public MarkerSensor(MarkerLocations markerLocations, IDistribution posDistType, IDistribution oriDistType)
 {
     this.markerLocations = markerLocations;
     this.posDistType     = posDistType;
     this.oriDistType     = oriDistType;
     this.orientations    = new Measurement <Vector3> [this.bufferLength];
     this.positions       = new Measurement <Vector3> [this.bufferLength];
     this.Measurements    = 0;
 }