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
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
04/29/19
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?
04/28/19
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
04/26/19
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?
04/26/19
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
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.