Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
DoubleVector3.cs
Go to the documentation of this file.
1 using System;
2 using UnityEngine;
3 
4 namespace droid.Runtime.Utilities.Structs {
5  [Serializable]
6  public struct DoubleVector3 {
7  [SerializeField] double _X;
8  [SerializeField] double _Y;
9  [SerializeField] double _Z;
10 
11  public DoubleVector3(Vector3 vec3) {
12  this._X = vec3.x;
13  this._Y = vec3.y;
14  this._Z = vec3.z;
15  }
16 
18  a._X += b._X;
19  a._Y += b._Y;
20  a._Z += b._Z;
21  return a;
22  }
23 
24  public DoubleVector3(double x, double y, double z) {
25  this._X = x;
26  this._Y = y;
27  this._Z = z;
28  }
29 
30  public Double X { get { return this._X; } set { this._X = value; } }
31 
32  public Double Y { get { return this._Y; } set { this._Y = value; } }
33 
34  public Double Z { get { return this._Z; } set { this._Z = value; } }
35  }
36 }
static DoubleVector3 operator+(DoubleVector3 a, DoubleVector3 b)
DoubleVector3(double x, double y, double z)