Results 1 to 2 of 2

Thread: [RESOLVED] Trigonometery

  1. #1

    Thread Starter
    Frenzied Member toecutter's Avatar
    Join Date
    Apr 2006
    Location
    Brisbane, Australia
    Posts
    1,160

    Resolved [RESOLVED] Trigonometery

    Hi

    How would i write this formula in vb.net[2005]?
    Code:
    Tan(25) * Cos(45) = -Tan
    I am trying to obtain the hip pitch of a roof when knowing only the roof pitch

    regards

    toe

  2. #2

    Thread Starter
    Frenzied Member toecutter's Avatar
    Join Date
    Apr 2006
    Location
    Brisbane, Australia
    Posts
    1,160

    Re: Trigonometery

    Probably dosn't make much sense to anyone but just incase

    Code:
             'formula for roof pitch to hip pitch
                    'tan[roof pitch] * cos[hip angle] = -tan
                    'TRIG CALCULATIONS
                    Const Pi As Double = 3.14159265358979 'COS
                    Dim rRoofpitch As Double = Drawing.lblPitch.Text
                    Dim tTanRoofPitchXcCosHipAngle As Double = 0.0
                    tTanRoofPitchXcCosHipAngle = (Math.Tan(rRoofpitch * (Pi / 180)) * 0.707106781)          'ROOF PITCH TO HIP PITCH
                    Dim hHipPitch As Double = 0.0
                    hHipPitch = Math.Atan(tTanRoofPitchXcCosHipAngle) * 180 / Pi                           'INVERT TANGENT to get true hip pitch
                    Dim tTrueHipLength As Double = 0.0
                    tTrueHipLength = _length / Math.Cos(hHipPitch * (Pi / 180))                            'planHipLength to True hip length

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width