예제 #1
0
 // Token: 0x060001E4 RID: 484 RVA: 0x0000A668 File Offset: 0x00008868
 public AffineTransform3(UnitVector3 axisX, UnitVector3 axisY, UnitVector3 axisZ, Vector3 origin, double scale)
 {
     this = default(AffineTransform3);
     MathBase.Assert(Math.Abs(1.0 - axisX.Cross(axisY).Dot(axisZ)) < 1E-08, "AffineTransform3 constructor: axes must be perpendicular and right-handed.");
     this.AxisX  = axisX;
     this.AxisY  = axisY;
     this.AxisZ  = axisZ;
     this.Scale  = scale;
     this.Origin = origin;
 }
예제 #2
0
 // Token: 0x060000B3 RID: 179 RVA: 0x00003FF8 File Offset: 0x000021F8
 public Circle3(Vector3 center, UnitVector3 unitU, UnitVector3 unitV, UnitVector3 normal, double radius)
 {
     this = default(Circle3);
     MathBase.Assert(Math.Abs(1.0 - unitU.Cross(unitV).Dot(normal)) < 1E-08, "Circle3 constructor: axes must be perpendicular and right-handed.");
     this.Center = center;
     this.UnitU  = unitU;
     this.UnitV  = unitV;
     this.Normal = normal;
     this.Radius = radius;
 }
예제 #3
0
파일: Box3.cs 프로젝트: mh-soft/mh-master
 // Token: 0x06000090 RID: 144 RVA: 0x00003908 File Offset: 0x00001B08
 public Box3(Vector3 center, UnitVector3 axis0, UnitVector3 axis1, UnitVector3 axis2, double extent0, double extent1, double extent2)
 {
     this = default(Box3);
     MathBase.Assert(Math.Abs(1.0 - axis0.Cross(axis1).Dot(axis2)) < 1E-08, "Box3 constructor: axes must be perpendicular and right-handed.");
     this.Center  = center;
     this.Axis0   = axis0;
     this.Axis1   = axis1;
     this.Axis2   = axis2;
     this.Extent0 = extent0;
     this.Extent1 = extent1;
     this.Extent2 = extent2;
 }