Print Page | Close Window

distance between coords

Printed From: Design Simulation Technologies
Category: DST Products
Forum Name: Motion
Forum Description: Topics related to using SimWise for Motion Simulation
URL: http://forums.design-simulation.com/forum_posts.asp?TID=18
Printed Date: Mar 26 2026 at 4:38pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: distance between coords
Posted By: Healme
Subject: distance between coords
Date Posted: Jun 13 2025 at 10:09am

How do I define the distance between two coordinate systems relative to each other with one of them as the base? This must also work if the base coordinate system moves and rotates. The coords lie on different bodies.

For example I need the x and y components of coord[1] regarding the base coord[2].

I couldn't figure it out with the express formula.




Replies:
Posted By: Healme
Date Posted: Jun 13 2025 at 10:16am
I found the solution in an earlier post:
express(coord[1].p-coord[2].p,0,2).x
express(coord[1].p-coord[2].p,0,2).y



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net