Click or drag to resize

ModelElementStraightLinex_direction Method (Point3, Point3)

Calculate the axial direction vector of the element.

Namespace:  Karamba.Elements
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public Vector3 x_direction(
	Point3 node1,
	Point3 node2
)

Parameters

node1
Type: Karamba.GeometryPoint3
position of starting node
node2
Type: Karamba.GeometryPoint3
position of end node

Return Value

Type: Vector3
axial direction of element which considers user preferred axial direction. Zero length elements return a unit length vector in global x-direction
See Also