KDWofXY
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 4.5, Creation date: 2019-02-26, Last change: 2025-09-14
returns two line distances of points and an angle and a displacement of a straigt line line from two points
Description
This function calculates wrt to the origin the values of K, D, W from two attachment points
Since the original concept for 3 Pose syntheses of fourbar linkages by Tim Lueth was based on poses, and attachment point were introduced later, it was necessary to convert the concept of pose shift/ displacement to the concept of attachment points
See Also: KDWPosevariation
, KDWofPoseattachments
, TofPoseattachmentpoints
, B1ofA1
Example Illustration
Syntax
[K,D,W]=KDWofXY(A1,B1,[TP])
Input Parameter
A1: | | Point of attachment point A1 wrt to origin |
B1: | | Point of attachment point B1 wrt to origin |
TP: | | Optional Pose Coordinate System wrt to Origin; default is origin; eye(4); |
Output Parameter
K: | | distance of A1 and B1 along the origin of a straight line |
D: | | displacement of the line wrt to the origin |
W: | | turning angle of the line relative to x-axis |
Examples
KDWofXY([1 0],[0 1]); [K,D,W]=KDWofXY([1 0],[0 1])
KDWofXY([0 1],[1 0]); [K,D,W]=KDWofXY([0 1],[1 0])
KDWofXY([1 0],[0 1],TofR(rot(pi/2),[0 0]))
Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21