|
ModelElementStraightLinex_direction Method (Point3, Point3)
|
Calculate the axial direction vector of the element.
Namespace:
Karamba.Elements
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntaxpublic 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
Parameters
- node1
- Type: Karamba.GeometryPoint3
position of starting node. - node2
- Type: Karamba.GeometryPoint3
position of end node.
Return Value
Type:
Vector3axial direction of element which considers user preferred axial direction.
Zero length elements return a unit length vector in global x-direction.
See Also