Sticking all variables in a struct under a class or leave them in the class?
<p>I have a class which is quite Maths intensive and performs a number of formulas/equations on an object (object not being a class in my code but a real world object).</p>

<p>Anyway, I was wondering, under my class should I move all the properties and fields into a struct? Would this be a bad design?</p>

<p>A struct is supposed to be useful for something like this from what I have learnt. It will also mean I can return the struct from a method and make the code a bit more atomic (struct has data, class has logic). If I keep the current design and return a class with written variables, what difference will this make to returning a struct? I'm aware of the differences between a struct and class but I am not sure if they will have much effect.</p>

<p>Thanks</p>
