Ejemplo n.º 1
0
 /// <summary>
 /// 构造函数,初始化一个二维向量
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 public Vector2(double x, double y)
 {
     MathBase.AssertValid(x);
     MathBase.AssertValid(y);
     this.x = x;
     this.y = y;
 }
Ejemplo n.º 2
0
 // Token: 0x060001C7 RID: 455 RVA: 0x0000A0C3 File Offset: 0x000082C3
 public Segment2(Vector2 origin, UnitVector2 direction, double extent)
 {
     this = default(Segment2);
     MathBase.AssertValid(extent);
     this.Origin    = origin;
     this.Direction = direction;
     this.Extent    = extent;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 顶点坐标
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="z"></param>
 public Vector3(double x, double y, double z)
 {
     MathBase.AssertValid(x);
     MathBase.AssertValid(y);
     MathBase.AssertValid(z);
     this.x = x;
     this.y = y;
     this.z = z;
 }
Ejemplo n.º 4
0
		/// <summary>
		/// 构造函数,初始化当前的四维向量
		/// </summary>
		/// <param name="x"></param>
		/// <param name="y"></param>
		/// <param name="z"></param>
		/// <param name="w"></param>
		public Vector4(double x, double y, double z, double w)
		{
			MathBase.AssertValid(x);
			MathBase.AssertValid(y);
			MathBase.AssertValid(z);
			MathBase.AssertValid(w);
			this.x = x;
			this.y = y;
			this.z = z;
			this.w = w;
		}