lib/geom/matrix3d.rb in floorplanner-fml-0.2 vs lib/geom/matrix3d.rb in floorplanner-fml-0.2.1
- old
+ new
@@ -89,10 +89,10 @@
def self.reflection(plane)
a = plane.normal.x
b = plane.normal.y
c = plane.normal.z
-
+
self[
[1-(2*a*a) , 0-(2*a*b) , 0-(2*a*c) , 0],
[0-(2*a*b) , 1-(2*b*b) , 0-(2*b*c) , 0],
[0-(2*a*c) , 0-(2*b*c) , 1-(2*c*c) , 0],
[0 , 0 , 0 , 1]