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)); }
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)); }