C#

06/06/19

get closest point to a line?

I'd like to have a straight forward C# function to get a closest point (from a point P) to a line-segment, AB. An abstract function may look like this. I've search through SO but not found a usable... more
C#

05/01/19

Given 3 pts, how do I calculate the normal vector?

Given three 3D points (A,B, & C) how do I calculate the normal vector? The three points define a plane and I want the vector perpendicular to this plane. Can I get sample C# code that... more

What is a magic number, and why is it bad?

What is a magic number?Why should it be avoided?Are there cases where it's appropriate?

Given an integer, how do I find the next largest power of two using bit-twiddling?

If I have a integer number `n`, how can I find the next number `k > n` such that `k = 2^i`, with some `i` element of `N` by bitwise shifting or logic.Example: If I have `n = 123`, how can I find... more

How do I select an area with an exact width and height in Photoshop?

I want to select part of a photo I'm editting in Photoshop. This area is exactly 340 x 210. How do I do that with say the select tool?

Photoshop CS5, how to create a layer mask from a layer?

I have a layer in Photoshop that I'd like to use as a layer mask, is this at all possible?It's a black & white layer with some gradients that I would like to apply to another layer that's a... more

04/24/19

What is the main use of Python script in Maya?

04/23/19

Can I install Maya and 3DS Max in the same system?

04/23/19

What video game has the biggest map?

04/23/19

Why do most video games get updated on Wednesdays?

04/23/19

How do I upload or import a photo into Maya?

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.