📄 方向改化.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5820
ClientLeft = 60
ClientTop = 345
ClientWidth = 7635
LinkTopic = "Form1"
ScaleHeight = 5820
ScaleWidth = 7635
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "退出"
Height = 615
Left = 4440
TabIndex = 22
Top = 4560
Width = 1695
End
Begin VB.Frame Frame5
BackColor = &H00C0C0FF&
Caption = "输出方向改正(秒)"
Height = 1095
Left = 120
TabIndex = 17
Top = 3360
Width = 6975
Begin VB.TextBox Text8
Height = 495
Left = 4440
TabIndex = 20
Text = "Text8"
Top = 240
Width = 1935
End
Begin VB.TextBox Text7
Height = 375
Left = 840
TabIndex = 18
Text = "Text7"
Top = 360
Width = 1815
End
Begin VB.Label Label7
BackColor = &H00C0C0FF&
Caption = "a12="
Height = 375
Left = 240
TabIndex = 21
Top = 360
Width = 495
End
Begin VB.Label Label8
BackColor = &H00C0C0FF&
Caption = "a21="
Height = 495
Left = 3840
TabIndex = 19
Top = 240
Width = 375
End
End
Begin VB.Frame Frame4
BackColor = &H00C0FFC0&
Caption = "输入相关系数"
Height = 975
Left = 120
TabIndex = 12
Top = 2160
Width = 6975
Begin VB.TextBox Text6
Height = 375
Left = 4200
TabIndex = 15
Text = "Text6"
Top = 360
Width = 1815
End
Begin VB.TextBox Text5
Height = 375
Left = 720
TabIndex = 14
Text = "Text5"
Top = 360
Width = 1935
End
Begin VB.Label Label9
BackColor = &H00C0FFC0&
Caption = "度"
Height = 375
Left = 6120
TabIndex = 23
Top = 480
Width = 495
End
Begin VB.Label Label6
BackColor = &H00C0FFC0&
Caption = "Bm="
Height = 255
Left = 3840
TabIndex = 16
Top = 480
Width = 495
End
Begin VB.Label Label5
BackColor = &H00C0FFC0&
Caption = "Rm="
Height = 375
Left = 360
TabIndex = 13
Top = 480
Width = 375
End
End
Begin VB.Frame Frame1
BackColor = &H00C0FFFF&
Caption = "请输入坐标(KM)"
Height = 1935
Left = 0
TabIndex = 1
Top = 120
Width = 7215
Begin VB.Frame Frame3
BackColor = &H00C0FFFF&
Caption = "输入第二点坐标"
Height = 1455
Left = 3480
TabIndex = 3
Top = 360
Width = 3615
Begin VB.TextBox Text4
Height = 375
Left = 840
TabIndex = 11
Text = "Text4"
Top = 720
Width = 2175
End
Begin VB.TextBox Text3
Height = 375
Left = 840
TabIndex = 10
Text = "Text3"
Top = 240
Width = 2175
End
Begin VB.Label Label4
BackColor = &H00C0FFFF&
Caption = "y2="
Height = 375
Left = 240
TabIndex = 9
Top = 840
Width = 375
End
Begin VB.Label Label3
BackColor = &H00C0FFFF&
Caption = "x2="
Height = 375
Left = 240
TabIndex = 8
Top = 240
Width = 375
End
End
Begin VB.Frame Frame2
BackColor = &H00C0FFFF&
Caption = "输入第一点坐标"
Height = 1455
Left = 120
TabIndex = 2
Top = 360
Width = 3135
Begin VB.TextBox Text2
Height = 375
Left = 600
TabIndex = 7
Text = "Text2"
Top = 840
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 600
TabIndex = 6
Text = "Text1"
Top = 240
Width = 1815
End
Begin VB.Label Label2
BackColor = &H00C0FFFF&
Caption = "y1="
Height = 375
Left = 120
TabIndex = 5
Top = 840
Width = 255
End
Begin VB.Label Label1
BackColor = &H00C0FFFF&
Caption = "x1="
Height = 375
Left = 120
TabIndex = 4
Top = 360
Width = 255
End
End
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 615
Left = 1080
TabIndex = 0
Top = 4560
Width = 1575
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim fm, rm, t, b, qa, qb, E, aa, ab As Variant
Dim x1, x2, y1, y2, ym As Variant
x1 = Val(Text1.Text)
y1 = Val(Text2.Text)
x2 = Val(Text3.Text)
y2 = Val(Text4.Text)
rm = Val(Text5.Text)
b = Val(Text6.Text)
t = Tan(b * 3.14159265358979 / 180)
y = 0.0063949674227 * Cos(b * 3.14159265358979 / 180) * Cos(b * 3.14159265358979 / 180)
ym = (y1 + y2) / 2
fm = 206264.806247096 / (2 * rm * rm)
E = ym ^ 3 / (3 * rm * rm)
qa = ym - (yb - ya) / 6 - E
qb = ym + (yb - ya) / 6 - E
tt = y * y * t * (yb - ya) * ym * ym * 206264.806247096 / rm ^ 3
aa = fm * (xa - ab) * qa - E
bb = fm * (xb - xa) * qb - E
Text7.Text = aa
Text8.Text = aa
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -