コード例 #1
0
ファイル: Primitive.cs プロジェクト: ukitake/Stratum
 public abstract bool Test(BoundingFrustum other);
コード例 #2
0
ファイル: Primitive.cs プロジェクト: ukitake/Stratum
 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
ファイル: BoundingFrustum.cs プロジェクト: ukitake/Stratum
 public override BoundingVolume Merge(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public bool Contains(BoundingFrustum other)
 {
     return(sbf.Contains(ref other.sbf));
 }
コード例 #6
0
ファイル: Cylinder.cs プロジェクト: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
ファイル: BoundingVolume.cs プロジェクト: ukitake/Stratum
 public abstract BoundingVolume Merge(BoundingFrustum other);
コード例 #8
0
ファイル: IntersectionTests.cs プロジェクト: ukitake/Stratum
 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
ファイル: BoundingSphere.cs プロジェクト: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     return other.sbf.Intersects(ref this.sSphere);
 }
コード例 #10
0
ファイル: BoundingSphere.cs プロジェクト: ukitake/Stratum
 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
ファイル: Triangle.cs プロジェクト: ukitake/Stratum
        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
ファイル: BoundingSphere.cs プロジェクト: ukitake/Stratum
        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
ファイル: LineSegment.cs プロジェクト: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     return IntersectionTests.Test(this, other);
 }
コード例 #17
0
ファイル: BoundingSphere.cs プロジェクト: ukitake/Stratum
 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
ファイル: BoundingVolume.cs プロジェクト: ukitake/Stratum
 public abstract BoundingVolume Merge(BoundingFrustum other);
コード例 #20
0
ファイル: Cylinder.cs プロジェクト: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     throw new NotImplementedException();
 }
コード例 #21
0
ファイル: BoundingFrustum.cs プロジェクト: ukitake/Stratum
 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
ファイル: LineSegment.cs プロジェクト: ukitake/Stratum
 public override bool Test(BoundingFrustum other)
 {
     return(IntersectionTests.Test(this, other));
 }