A .NET type for describing 3D position?

I need a type which can contain a position of an object in a 3D environment - my house.

I need to know the floor it is on, and the x and Y coordinates on that floor.

The System.Windows.Point(int, int) only represent a two-dimensional space, but does .NET have a type for three-dimensional space?

I realize that I could do something like

List<int, Point<int, int>>

but I would like to have just a simple type instead. Something like:

3DPoint<int, int, int>

Does the .NET Framework have this?


In managed Direct3D there is a vector3 type that describes a point in space. It would be trivial to implement one yourself.

public struct Vector3
  public float x;
  public float y;
  public float z;

Need Your Help

Did the behavior of `$this` in a scope change from PHP 5.3.29 to 5.5.24?

php zend-framework phpunit this

Short question: Did the behavior of $this in a scope change from PHP 5.3.29 to 5.5.24? I couldn't find any relevant changes in the PHP 5 Changelog.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.