Click here to Skip to main content
15,867,771 members
Home / Discussions / Algorithms
   

Algorithms

 
Questionfind all 'n'-bit numbers with 'k' bit set [modified] Pin
Sameerkumar Namdeo1-Jul-11 23:46
Sameerkumar Namdeo1-Jul-11 23:46 
AnswerRe: find all 'n'-bit numbers with 'k' bit set Pin
David19872-Jul-11 0:15
David19872-Jul-11 0:15 
GeneralRe: find all 'n'-bit numbers with 'k' bit set Pin
Sameerkumar Namdeo2-Jul-11 1:01
Sameerkumar Namdeo2-Jul-11 1:01 
QuestionSewer Colony Optimization Algorithm Pin
Anubhava Dimri30-Jun-11 18:05
Anubhava Dimri30-Jun-11 18:05 
AnswerRe: Sewer Colony Optimization Algorithm Pin
Roger Wright30-Jun-11 19:05
professionalRoger Wright30-Jun-11 19:05 
QuestionKnapsack Problem Algorithm [modified] Pin
Nikolay Nedelchev29-Jun-11 8:24
Nikolay Nedelchev29-Jun-11 8:24 
AnswerRe: Knapsack Problem Algorithm Pin
OriginalGriff30-Jun-11 9:26
mveOriginalGriff30-Jun-11 9:26 
QuestionLine Intersection Pin
musefan17-Jun-11 3:20
musefan17-Jun-11 3:20 
Hi all,

I am sure there are loads of samples around but I am really not finding a relevant one for some reasons (perhaps it's a Friday brain melt thing)

I have two points in 3D space - I know their coordinates (x, y, z) and I know their rotations (x, y, z)

I know this should be enough information to calculate a line (is it a vector? it's been sooo long since uni D'Oh! | :doh: )

What I want is to calculate the point (x, y, z) where the lines intersect (if any). The Z axis is actually not important, I want an intersect point on only X and Y planes, the Z value of the point will be half way between the original 2 points Z value.

Can any shed some light, or has a link? All info I am finding doesn't seem to allow me to make use of my rotation data.

Thanks for any help
I may or may not be responsible for my own actions

AnswerRe: Line Intersection Pin
dasblinkenlight17-Jun-11 5:51
dasblinkenlight17-Jun-11 5:51 
GeneralRe: Line Intersection Pin
musefan17-Jun-11 5:55
musefan17-Jun-11 5:55 
AnswerRe: Line Intersection Pin
Roger Wright17-Jun-11 20:34
professionalRoger Wright17-Jun-11 20:34 
GeneralRe: Line Intersection Pin
musefan21-Jun-11 0:12
musefan21-Jun-11 0:12 
AnswerRe: Line Intersection Pin
BobJanova20-Jun-11 23:41
BobJanova20-Jun-11 23:41 
GeneralRe: Line Intersection Pin
musefan21-Jun-11 0:08
musefan21-Jun-11 0:08 
QuestionPattern Cracking Question Pin
YSLGuru16-Jun-11 12:57
YSLGuru16-Jun-11 12:57 
AnswerRe: Pattern Cracking Question Pin
Moreno Airoldi17-Jun-11 22:52
Moreno Airoldi17-Jun-11 22:52 
AnswerRe: Pattern Cracking Question Pin
dasblinkenlight20-Jun-11 9:36
dasblinkenlight20-Jun-11 9:36 
AnswerRe: Pattern Cracking Question Pin
musefan21-Jun-11 0:34
musefan21-Jun-11 0:34 
GeneralRe: Pattern Cracking Question Pin
YSLGuru21-Jun-11 10:41
YSLGuru21-Jun-11 10:41 
GeneralRe: Pattern Cracking Question Pin
BobJanova22-Jun-11 0:33
BobJanova22-Jun-11 0:33 
GeneralRe: Pattern Cracking Question Pin
musefan22-Jun-11 3:34
musefan22-Jun-11 3:34 
GeneralRe: Pattern Cracking Question Pin
BobJanova22-Jun-11 4:34
BobJanova22-Jun-11 4:34 
Questionmerge k AVL trees complexity Pin
Hesham Yassin16-Jun-11 0:14
Hesham Yassin16-Jun-11 0:14 
AnswerRe: merge k AVL trees complexity Pin
Alan Balkany16-Jun-11 5:13
Alan Balkany16-Jun-11 5:13 
GeneralRe: merge k AVL trees complexity Pin
dasblinkenlight17-Jun-11 10:10
dasblinkenlight17-Jun-11 10:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.