Exemple #1
0
        public override int Prepare(ref TSVector rayOrigin, ref TSVector rayEnd)
        {
            TSBBox smallBox = TSBBox.SmallBox;

            smallBox.AddPoint(ref rayOrigin);
            smallBox.AddPoint(ref rayEnd);
            return(this.Prepare(ref smallBox));
        }
Exemple #2
0
        public override int Prepare(ref TSVector rayOrigin, ref TSVector rayDelta)
        {
            TSBBox   smallBox = TSBBox.SmallBox;
            TSVector value;

            TSVector.Normalize(ref rayDelta, out value);
            value = rayOrigin + rayDelta + value * this.sphericalExpansion;
            smallBox.AddPoint(ref rayOrigin);
            smallBox.AddPoint(ref value);
            return(this.Prepare(ref smallBox));
        }