Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    459
    Thanks
    0
    Thanked 20 Times in 20 Posts

    Need javascript math expert

    I'm working on a new project based off a code I found, the problem is the math seems to be way off. What should be a simple plus minus off center axis has a lot more fixes than I initially thought. The following image will show some of the challenges. Would prefer to speak with a js math expert in pm for a better understanding.

    ex 1


    ex 1-1

    the edges of the first object are not set correctly for the edge of the boxes. Also there is a 14px difference from center on axis-x.

    ex 2


    ex 2-2

    notice the gap? a 55px difference from center on axis-y.

    Problems with tilt differences too...yet all these are cenetered on the size of the main container. Would like help in fixing math. Thanks in advance.
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,033
    Thanks
    15
    Thanked 240 Times in 240 Posts
    Remember that by default all measurements and placements are from left and top which causes a bias when centering the final image.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


  •  

    Posting Permissions

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