ModelElementStraightLinex_direction(Point3, Point3) Method
Calculate the axial direction vector of the element.
Namespace: Karamba.ElementsAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public Vector3 x_direction(
Point3 node1,
Point3 node2
)
Public Function x_direction (
node1 As Point3,
node2 As Point3
) As Vector3
public:
Vector3 x_direction(
Point3 node1,
Point3 node2
)
member x_direction :
node1 : Point3 *
node2 : Point3 -> Vector3
- node1 Point3
- position of starting node.
- node2 Point3
- position of end node.
Vector3axial direction of element which considers user preferred axial direction.
Zero length elements return a unit length vector in global x-direction.