コード例 #1
0
ファイル: Triangle3D.cs プロジェクト: xuchuansheng/GenXSource
		public NuGenTriangle3D(NuGenPnt3D a, NuGenPnt3D b, NuGenPnt3D c)
		{
			p0 = a; p1 = b; p2 = c;
		}
コード例 #2
0
ファイル: NuGenSphere3D.cs プロジェクト: carlhuth/GenXSource
 public NuGenSphere3D(NuGenPnt3D center, double radius)
 {
     this.center = center;
     this.radius = radius;
 }
コード例 #3
0
 public NuGenTriangle3D(NuGenPnt3D a, NuGenPnt3D b, NuGenPnt3D c)
 {
     p0 = a; p1 = b; p2 = c;
 }
コード例 #4
0
ファイル: Sphere3D.cs プロジェクト: xuchuansheng/GenXSource
		public NuGenSphere3D(NuGenPnt3D center, double radius)
		{
			this.center = center;
			this.radius = radius;
		}
コード例 #5
0
ファイル: Ray3D.cs プロジェクト: xuchuansheng/GenXSource
		public NuGenRay3D(NuGenPnt3D p, NuGenVec3D v)
		{
			this.p = p;
			this.v = v;
		}
コード例 #6
0
ファイル: Vecmath.cs プロジェクト: xuchuansheng/GenXSource
		public static bool ApproxEquals(NuGenPnt3D a, NuGenPnt3D b)
		{
			return
				Math.Abs(a._x[0] - b._x[0]) < NuGenVector.TINY_DOUBLE &&
				Math.Abs(a._x[1] - b._x[1]) < NuGenVector.TINY_DOUBLE &&
				Math.Abs(a._x[2] - b._x[2]) < NuGenVector.TINY_DOUBLE;
		}