Ejemplo n.º 1
0
        // Token: 0x060001FB RID: 507 RVA: 0x0000806C File Offset: 0x0000626C
        public Vector3P transform(Vector3P xyz)
        {
            Quaternion b          = new Quaternion(xyz.X, xyz.Y, xyz.Z, 0f);
            Quaternion quaternion = this * b * this.Inverse;

            return(new Vector3P(quaternion.x, quaternion.y, quaternion.z));
        }
Ejemplo n.º 2
0
 // Token: 0x060001E1 RID: 481 RVA: 0x000077E6 File Offset: 0x000059E6
 private Matrix3P(Vector3P aside, Vector3P up, Vector3P dir)
 {
     this.columns = new Vector3P[]
     {
         aside,
         up,
         dir
     };
 }
Ejemplo n.º 3
0
 // Token: 0x060001E4 RID: 484 RVA: 0x000079FC File Offset: 0x00005BFC
 public void setTilda(Vector3P a)
 {
     this.Aside.Y = -a.Z;
     this.Aside.Z = a.Y;
     this.Up.X    = a.Z;
     this.Up.Z    = -a.X;
     this.Dir.X   = -a.Y;
     this.Dir.Y   = a.X;
 }
Ejemplo n.º 4
0
 // Token: 0x060001ED RID: 493 RVA: 0x00007B29 File Offset: 0x00005D29
 private Matrix4P(Matrix3P orientation, Vector3P position)
 {
     this.orientation = orientation;
     this.position    = position;
 }
Ejemplo n.º 5
0
        // Token: 0x06000215 RID: 533 RVA: 0x000085F8 File Offset: 0x000067F8
        public float Distance(Vector3P v)
        {
            Vector3P vector3P = this - v;

            return((float)Math.Sqrt((double)(vector3P.X * vector3P.X + vector3P.Y * vector3P.Y + vector3P.Z * vector3P.Z)));
        }
Ejemplo n.º 6
0
        // Token: 0x06000212 RID: 530 RVA: 0x000084D8 File Offset: 0x000066D8
        public bool Equals(Vector3P other)
        {
            Func <float, float, bool> func = (float f1, float f2) => (double)Math.Abs(f1 - f2) < 0.05;

            return(func(this.X, other.X) && func(this.Y, other.Y) && func(this.Z, other.Z));
        }
Ejemplo n.º 7
0
        // Token: 0x06000211 RID: 529 RVA: 0x000084AC File Offset: 0x000066AC
        public override bool Equals(object obj)
        {
            Vector3P vector3P = obj as Vector3P;

            return(vector3P != null && base.Equals(obj) && this.Equals(vector3P));
        }