-
Notifications
You must be signed in to change notification settings - Fork 4
/
LUX.D3x4.pas
196 lines (148 loc) · 6.46 KB
/
LUX.D3x4.pas
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
unit LUX.D3x4;
interface //#################################################################### ■
uses LUX, LUX.D1, LUX.D2, LUX.D3;
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【型】
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【レコード】
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TSingle4x3D
TSingle4x3D = record
private
///// アクセス
function Gets( const Y_:Integer ) :TSingle3D; inline;
procedure Sets( const Y_:Integer; const V_:TSingle3D ); inline;
public
///// プロパティ
property _s[ const Y_:Integer ] :TSingle3D read Gets write Sets; default;
case Byte of
0:( _YXs :array [ 1..4, 1..3 ] of Single; );
1:( _11, _12, _13,
_21, _22, _23,
_31, _32, _33,
_41, _42, _43 :Single; );
2:( _Ys :array [ 1..4 ] of TSingle3D; );
3:( _1,
_2,
_3,
_4 :TSingle3D; );
end;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TDouble4x3D
TDouble4x3D = record
private
///// アクセス
function Gets( const Y_:Integer ) :TDouble3D; inline;
procedure Sets( const Y_:Integer; const V_:TDouble3D ); inline;
public
///// プロパティ
property _s[ const Y_:Integer ] :TDouble3D read Gets write Sets; default;
case Byte of
0:( _YXs :array [ 1..4, 1..3 ] of Double; );
1:( _11, _12, _13,
_21, _22, _23,
_31, _32, _33,
_41, _42, _43 :Double; );
2:( _Ys :array [ 1..4 ] of TDouble3D; );
3:( _1,
_2,
_3,
_4 :TDouble3D; );
end;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TdSingle4x3D
TdSingle4x3D = record
private
///// アクセス
function Gets( const Y_:Integer ) :TdSingle3D; inline;
procedure Sets( const Y_:Integer; const V_:TdSingle3D ); inline;
public
///// プロパティ
property _s[ const Y_:Integer ] :TdSingle3D read Gets write Sets; default;
case Byte of
0:( _YXs :array [ 1..4, 1..3 ] of TdSingle; );
1:( _11, _12, _13,
_21, _22, _23,
_31, _32, _33,
_41, _42, _43 :TdSingle; );
2:( _Ys :array [ 1..4 ] of TdSingle3D; );
3:( _1,
_2,
_3,
_4 :TdSingle3D; );
end;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TdDouble4x3D
TdDouble4x3D = record
private
///// アクセス
function Gets( const Y_:Integer ) :TdDouble3D; inline;
procedure Sets( const Y_:Integer; const V_:TdDouble3D ); inline;
public
///// プロパティ
property _s[ const Y_:Integer ] :TdDouble3D read Gets write Sets; default;
case Byte of
0:( _YXs :array [ 1..4, 1..3 ] of TdDouble; );
1:( _11, _12, _13,
_21, _22, _23,
_31, _32, _33,
_41, _42, _43 :TdDouble; );
2:( _Ys :array [ 1..4 ] of TdDouble3D; );
3:( _1,
_2,
_3,
_4 :TdDouble3D; );
end;
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【クラス】
//const //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【定数】
//var //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【変数】
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【ルーチン】
implementation //############################################################### ■
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【レコード】
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TSingle4x3D
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
/////////////////////////////////////////////////////////////////////// アクセス
function TSingle4x3D.Gets( const Y_:Integer ) :TSingle3D;
begin
Result := _Ys[ Y_ ];
end;
procedure TSingle4x3D.Sets( const Y_:Integer; const V_:TSingle3D );
begin
_Ys[ Y_ ] := V_;
end;
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TDouble4x3D
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
/////////////////////////////////////////////////////////////////////// アクセス
function TDouble4x3D.Gets( const Y_:Integer ) :TDouble3D;
begin
Result := _Ys[ Y_ ];
end;
procedure TDouble4x3D.Sets( const Y_:Integer; const V_:TDouble3D );
begin
_Ys[ Y_ ] := V_;
end;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TdSingle4x3D
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
/////////////////////////////////////////////////////////////////////// アクセス
function TdSingle4x3D.Gets( const Y_:Integer ) :TdSingle3D;
begin
Result := _Ys[ Y_ ];
end;
procedure TdSingle4x3D.Sets( const Y_:Integer; const V_:TdSingle3D );
begin
_Ys[ Y_ ] := V_;
end;
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TdDouble4x3D
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
/////////////////////////////////////////////////////////////////////// アクセス
function TdDouble4x3D.Gets( const Y_:Integer ) :TdDouble3D;
begin
Result := _Ys[ Y_ ];
end;
procedure TdDouble4x3D.Sets( const Y_:Integer; const V_:TdDouble3D );
begin
_Ys[ Y_ ] := V_;
end;
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【クラス】
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【ルーチン】
//############################################################################## □
initialization //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 初期化
finalization //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 最終化
end. //######################################################################### ■