Thread: some problems
View Single Post
Re: some problems
Old
  (#2)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: some problems - 17-03-2004

that code snippet should be right if you assume every plane if going thru 0,0,0. Planes are normally specified with the normal and then with the distance to the origin of your coordinate system ( It's called hessesche form I guess ), but this'd be 0 in your case I guess. so two possible planes, first checking if the normal is right at all, so we know that the planes are identical. ( if you have 2 planes which are principally identical, but their calculation was different, you might still get problem due to rounding in float operations )

checking the dotproducts should then be ok, too


  
Reply With Quote