MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / localCoord

Function localCoord

SRC/element/CEqElement/ASDEmbeddedNodeElement.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 void localCoord(const Matrix& X, const Matrix& invJ, double gx, double gy, double& lx, double& ly) {
102 lx = ly = 0.0;
103 double px, py;
104 globalCoord(X, lx, ly, px, py);
105 Vector D(2);
106 Vector DL(2);
107 D(0) = gx - px;
108 D(1) = gy - py;
109 DL.addMatrixVector(0.0, invJ, D, 1.0);
110 lx = DL(0);
111 ly = DL(1);
112 }
113
114 void localCoord(const Matrix& X, const Matrix& invJ, double gx, double gy, double gz, double& lx, double& ly) {
115 lx = ly = 0.0;

Callers 1

Calls 2

globalCoordFunction · 0.85
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected