示例#1
0
 public abstract bool Test(BoundingFrustum other);
示例#2
0
 public abstract bool Test(BoundingFrustum other);
示例#3
0
文件: Plane.cs 项目: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     return other.sbf.Intersects(ref splane) == PlaneIntersectionType.Intersecting;
 }
示例#4
0
 public override BoundingVolume Merge(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public bool Contains(BoundingFrustum other)
 {
     return(sbf.Contains(ref other.sbf));
 }
示例#6
0
 public override bool Test(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
示例#7
0
 public abstract BoundingVolume Merge(BoundingFrustum other);
示例#8
0
 public static bool Test(LineSegment seg, BoundingFrustum frus)
 {
     ContainmentType ct1 = frus.Contains(seg.Point1);
     ContainmentType ct2 = frus.Contains(seg.Point2);
     return ct1 != ct2;
 }
示例#9
0
 public override bool Test(BoundingFrustum other)
 {
     return other.sbf.Intersects(ref this.sSphere);
 }
示例#10
0
 public override BoundingVolume Merge(BoundingFrustum other)
 {
     var otherS = SharpDX.BoundingSphere.FromPoints(other.sbf.GetCorners());
     return new BoundingSphere(SharpDX.BoundingSphere.Merge(this.sSphere, otherS));
 }
示例#11
0
        public override bool Test(BoundingFrustum other)
        {
            var c1 = other.sbf.Contains(ref P1);
            if (c1 == ContainmentType.Disjoint)
            {
                var c2 = other.sbf.Contains(ref P2);
                if (c2 == ContainmentType.Disjoint)
                {
                    var c3 = other.sbf.Contains(ref P3);
                    if (c3 == ContainmentType.Disjoint)
                    {
                        return false;
                    }
                }
            }

            return true;
        }
示例#12
0
 public override bool Test(BoundingFrustum other)
 {
     return(other.sbf.Intersects(ref splane) == PlaneIntersectionType.Intersecting);
 }
示例#13
0
 public override BoundingVolume Merge(BoundingFrustum other)
 {
     var otherB = SharpDX.BoundingBox.FromPoints(other.sbf.GetCorners());
     return new AxisAlignedBoundingBox(SharpDX.BoundingBox.Merge(this.sbb, otherB));
 }
示例#14
0
文件: Ray.cs 项目: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     return(other.sbf.Intersects(ref sray));
 }
示例#15
0
        public override BoundingVolume Merge(BoundingFrustum other)
        {
            var otherS = SharpDX.BoundingSphere.FromPoints(other.sbf.GetCorners());

            return(new BoundingSphere(SharpDX.BoundingSphere.Merge(this.sSphere, otherS)));
        }
示例#16
0
 public override bool Test(BoundingFrustum other)
 {
     return IntersectionTests.Test(this, other);
 }
示例#17
0
 public override bool Test(BoundingFrustum other)
 {
     return(other.sbf.Intersects(ref this.sSphere));
 }
示例#18
0
 public override BoundingVolume Merge(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
示例#19
0
 public abstract BoundingVolume Merge(BoundingFrustum other);
示例#20
0
 public override bool Test(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
示例#21
0
 public bool Contains(BoundingFrustum other)
 {
     return sbf.Contains(ref other.sbf);
 }
示例#22
0
文件: Ray.cs 项目: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     return other.sbf.Intersects(ref sray);
 }
示例#23
0
 public override bool Test(BoundingFrustum other)
 {
     return(IntersectionTests.Test(this, other));
 }