PDA

View Full Version : Operand types of own and others implementations in .NET



cronodragon
01-10-2007, 04:17 PM
This is a question related to Delphi .NET. Let's say we have several units. Some units implement operations on vectors, matrices, quaternions, etc., defining their own operand types. On the other hand there are the DX implementations of those operands. Having different types is ok, since that keeps portability. In Delphi (Win32), those types can live together in harmony thanks to the typecast. But is it possible to achieve the same harmony in .NET? Is there any mechanism that converting similar types? :? Or is it necessary to create a lot of "toType" mtehods which contain several assignments? :?