fna-workbench

fna-workbench Commit Details


Date:2016-02-05 13:46:22 (9 years 7 months ago)
Author:Ethan Lee
Branch:master
Commit:9ef5003f69d517219d924d4ff353f17206038e16
Parents: e0394340fe3c5063ccf107a3267ac27f87b250f3
Message:[MG] Remove potentially reflected code

Changes:

File differences

src/BoundingFrustum.cs
470470
471471
472472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
473
531474
532475
533476
throw new ArgumentOutOfRangeException("ctype");
}
// TODO: Needs additional test for not 0.0 and null results.
result = null;
float min = float.MinValue;
float max = float.MaxValue;
foreach (Plane plane in planes)
{
Vector3 normal = plane.Normal;
float result2;
Vector3.Dot(ref ray.Direction, ref normal, out result2);
float result3;
Vector3.Dot(ref ray.Position, ref normal, out result3);
result3 += plane.D;
if ((double) Math.Abs(result2) < 9.99999974737875E-06)
{
if ((double) result3 > 0.0)
{
return;
}
}
else
{
float result4 = -result3 / result2;
if ((double) result2 < 0.0)
{
if ((double) result4 > (double) max)
{
return;
}
if ((double) result4 > (double) min)
{
min = result4;
}
}
else
{
if ((double) result4 < (double) min)
{
return;
}
if ((double) result4 < (double) max)
{
max = result4;
}
}
}
float? distance = ray.Intersects(plane);
if (distance.HasValue)
{
min = Math.Min(min, distance.Value);
max = Math.Max(max, distance.Value);
}
}
float temp = min >= 0.0 ? min : max;
if (temp < 0.0)
{
return;
}
result = temp;
throw new NotImplementedException();
}
#endregion

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.81694s using 13 queries.