public Edge(Triangle right, Vector3 start, Vector3 end) { this.rightFace = right; this.start = start; this.end = end; this.dir = end - start; }
public override bool Test(Triangle other) { return IntersectionTests.Test(this.sray, other.P1, other.P2, other.P3); }
public override bool Test(Triangle other) { throw new NotImplementedException(); }
public abstract bool Test(Triangle other);
public override BoundingVolume Merge(Triangle other) { throw new NotImplementedException(); }
public override BoundingVolume Merge(Triangle other) { var otherS = SharpDX.BoundingSphere.FromPoints(new[] { other.P1, other.P2, other.P3 }); return(new BoundingSphere(SharpDX.BoundingSphere.Merge(this.sSphere, otherS))); }
public override bool Test(Triangle other) { return(IntersectionTests.Test(this, other.P1, other.P2, other.P3)); }
public abstract BoundingVolume Merge(Triangle other);
public override BoundingVolume Merge(Triangle other) { var otherS = SharpDX.BoundingSphere.FromPoints(new[] { other.P1, other.P2, other.P3 }); return new BoundingSphere(SharpDX.BoundingSphere.Merge(this.sSphere, otherS)); }
public override BoundingVolume Merge(Triangle other) { var otherB = SharpDX.BoundingBox.FromPoints(new[] { other.P1, other.P2, other.P3 }); return new AxisAlignedBoundingBox(SharpDX.BoundingBox.Merge(this.sbb, otherB)); }