I'm working with some 3d stuff, and to start I'm going to create a new structure. It's very simple:
The reason I chose to make it a structure as opposed to a class is because of how tiny it is, and inheritance isn't needed. My question is, how do I create the constructors? For example, a point has three:
I've never worked on them before, and everything that I see has to do with the new constructor, but when in the code view for my designer, the Point3d doesn't have a new constructor.
Code:
Public Structure Point3d
''' <summary>
''' The horizontal position
''' </summary>
Public x As Integer
''' <summary>
''' The verticle position
''' </summary>
Public y As Integer
''' <summary>
''' The depth position
''' </summary>
''' <remarks></remarks>
Public z As Integer
End Structure
I've never worked on them before, and everything that I see has to do with the new constructor, but when in the code view for my designer, the Point3d doesn't have a new constructor.