-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeometry_Operations.py
More file actions
59 lines (45 loc) · 1.27 KB
/
Geometry_Operations.py
File metadata and controls
59 lines (45 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 14 11:25:01 2021
@author: kendrick shepherd
"""
import math
import numpy as np
import sys
# length of the beam
def Length(bar):
return
# Find two norm (magnitude) of a vector
def VectorTwoNorm(vector):
return
# Find a shared node between two bars
def FindSharedNode(bar_1,bar_2):
return
# Given a bar and a node on that bar, find the other node
def FindOtherNode(node,bar):
return
# Find a vector from input node (of the input bar) in the direction of the bar
def BarNodeToVector(origin_node,bar):
return
# Convert to bars that meet at a node into vectors pointing away from that node
def BarsToVectors(bar_1,bar_2):
return
# Cross product of two vectors
def TwoDCrossProduct(vec1,vec2):
return
# Dot product of two vectors
def DotProduct(vec1,vec2):
return
# Cosine of angle from local x vector direction to other vector
def CosineVectors(local_x_vec,other_vec):
return
# Sine of angle from local x vector direction to other vector
def SineVectors(local_x_vec,other_vec):
return
# Cosine of angle from local x bar to the other bar
def CosineBars(local_x_bar,other_bar):
return
# Sine of angle from local x bar to the other bar
def SineBars(local_x_bar,other_bar):
return