Pathfinding.Int3.Int3 C# (CSharp) Méthode

Int3() public méthode

public Int3 ( Vector3 position ) : Pathfinding.Pathfinding
position Vector3
Résultat Pathfinding.Pathfinding
		public Int3 (Vector3 position) {
			x = (int)System.Math.Round (position.x*FloatPrecision);
			y = (int)System.Math.Round (position.y*FloatPrecision);
			z = (int)System.Math.Round (position.z*FloatPrecision);
			//x = Mathf.RoundToInt (position.x);
			//y = Mathf.RoundToInt (position.y);
			//z = Mathf.RoundToInt (position.z);
		}
		

Same methods

Int3::Int3 ( int _x, int _y, int _z ) : Pathfinding.Pathfinding