IDisposable and other Managed objects.

I’ve been working a lot with unmanaged resources, so I’ve been working quite a bit with the IDisposable interface. The standard dispose looks something like this: protected virtual void Dispose(bool disposing) { if (disposed) return; if (disposing) { handle.Dispose(); // Free any other managed objects here. // } disposed = true; } What is actually […]

How to bias Random?

Hi there I’m looking for a better method to bias a Random number. I’ve a list of YouTube channels where the user of the application can add or remove. The user can also input the percentage that a specific channel has to be picked. Right now I’m just crating a List<int> that I populate according […]

OpenTk Camera Position

Hey guys, this is my matrix for viewing the world using opentk view = Matrix4.LookAt(new Vector3(0, 0, 3), new Vector3(0, 0, 0), new Vector3(0, 3, 0)); With this in mind, does anyone know how i can work out where the camera is within the world? Thanks in advance, tried looking everywhere but don’t understand how […]