DirectionDistribution Class |
Namespace: DigitalRune.Mathematics.Statistics
The DirectionDistribution type exposes the following members.
Name | Description | |
---|---|---|
DirectionDistribution | Initializes a new instance of the DirectionDistribution class |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Next |
Gets a new random value for the underlying probability distribution.
(Overrides DistributionTNext(Random).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Deviation |
Gets or sets the angle of the cone measured from the central vector to a border vector.
| |
Direction |
Gets or sets the direction of the cone (the central vector in the cone).
| |
IsUniform |
Gets or sets a value indicating whether the random direction vectors are distributed
uniformly or follow a Gaussian distribution
| |
NextValue | Obsolete.
Gets a new random value for the underlying probability distribution.
(Inherited from DistributionT.) | |
Random | Obsolete.
Gets or sets the random number generator.
(Inherited from DistributionT.) |
Direction defines the main direction. Next(Random) returns a random direction vector that randomly deviates from Direction. The deviation can be uniformly distributed or follow an approximated Gaussian distribution (similar to FastGaussianDistributionF); see IsUniform. If the distribution is uniform (IsUniform is , default), Deviation defines the maximal deviation angle in radians. If the distribution is Gaussian (IsUniform is ), Deviation defines the standard deviation angle in radians.