Snippets created by Oldrich Svec

The modified Random type is built on top of System.Random type. It has a member Seed which returns a seed and NextFloat has the same overloads as NextInt (Next in System.Random). The members should further support units of measure.

The function segmentSegment takes 2 segments (starting and ending points) and computes the shortest distance between them. The function returns a starting and ending point of the shortest segment between the two segments. The function uses a triple type but can be easily rewritten to work with any other type (vector etc).

Put the code at some place and enable "Step Into Properties and Operators in Managed Code":
http://msdn.microsoft.com/en-us/library/cc667388.aspx
Now you should be able to step into the pipeline operator.