-
Notifications
You must be signed in to change notification settings - Fork 0
/
plaid.m
37 lines (32 loc) · 924 Bytes
/
plaid.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
classdef plaid < stm_img
properties
grating1
grating2
end
properties (Dependent = true, SetAccess = protected, Hidden = true)
tex
end
methods
function out = plaid(g1,g2)
if nargin>=1&&isa(g1,'object');
out.grating1 = g1;
else
out.grating1 = grating;
out.grating1.orientation = 0;
end
if nargin>=2&&isa(g2,'object');
out.grating2 = g2;
else
out.grating2 = grating;
out.grating2.orientation = 90;
end
end
% function set.siz(self, siz)
% self.grating1.siz = siz;
% self.grating2.siz = siz;
% end
function out = get.tex(self)
out = self.grating1.fuse(self.grating2);
end
end
end