Home > Software engineering >  Adjust the B line relative to the length of A line
Adjust the B line relative to the length of A line

Time:09-22

CodePudding user response:

This is a simple calculation, do you have any difficulty?

CodePudding user response:

The building Lord consult:
 'Excel VBA code: 
Option Explicit

Sub Main ()
Dim cw# ch#, dR As Double

DR ratio=0.65 '
With Sheet1. Shapes (1) "pick up" A line "object
The cw=. Width
Ch=. Height
End With
With Sheet1. Shapes (2) 'pick up line "B" object
. Width=dR * the cw
The Height=dR * ch
End With
End Sub

As long as the starting point of "B" line in the original "painting objects," as the starting point of "A line" is A coincidence,

CodePudding user response:

Even without calculating length,

Assuming Xa0=Xbo, Ya0=Ybo:

Xb1=(Xa1 - Xa0) * 0.5
Yb1=(Ya1 - Ya0) * 0.5

CodePudding user response:

Straight line segment of the parametric equation of
This is what grade elementary school mathematics knowledge?

CodePudding user response:

reference 4 floor zhao4zhong1 response:

straight segment of the parametric equationThis is what grade elementary school mathematics knowledge?

My KAO! , you're cattle B, elementary school learns to "equation, the plane geometry" things...


Said again, this is the "object" in operation Excel workbook, light has the "knowledge" can't solve the problem,

CodePudding user response:

https://www.baidu.com/s? Line segment the parametric equation of wd=% 20 this is what grade elementary school mathematics knowledge did % 3 f
Turned out to be high school to learn!
  •  Tags:  
  • VBA
  • Related