chiark
/
gitweb
/
~ian
/
moebius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pointmap command for use by moebius2
[moebius.git]
/
transforms.cc
diff --git
a/transforms.cc
b/transforms.cc
index d5b6cd6bb230a8782057cbf0fae84110b5446578..abd3fce3bb8bbf338021df6962f8919a24f7c1bf 100644
(file)
--- a/
transforms.cc
+++ b/
transforms.cc
@@
-68,6
+68,10
@@
Point TwistTransform::operator()(Point in) {
return Point(nx,ny,in[2]);
}
+Point ScaleTransform::operator()(Point in) {
+ return in*scale;
+}
+
Point MagicTransform::operator()(Point in) {
double nz= in[2]*zfactor;
double r= sqrt(in[0]*in[0] + in[1]*in[1]);