Class Node
represents nodes in 2d zx plane
Defined in: jsbeams.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Node(x, y, z)
2d xz plane node implementation.
|
Field Attributes | Field Name and Description |
---|---|
x coordinate
|
|
y coordinate
|
|
z coordinate
|
Method Attributes | Method Name and Description |
---|---|
add(n)
Returns sum of receiver and given node
|
|
<static> |
Node.create(x, y, z)
Constructor, see Node for input parameters description
|
cross(n)
Returns cross product of receiver and given node
|
|
dot(n)
Returns dot product of receiver and given node
|
|
mulf(f)
Returns receiver multiplied by given number
|
|
norm()
Returns (Eucleidian) norm of receiver sqrt(this.dit(this))
|
|
setX(x)
Set new x coordinate to receiver
|
|
setXYZ(x, y, z)
Sets new position to receiver
|
|
setXZ(x, z)
Sets new position to receiver
|
|
setY(y)
Set new x coordinate to receiver
|
|
setYZ(y, z)
Sets new position to receiver
|
|
setZ(z)
Set new z coordinate to receiver
|
|
Returns square norm of receiver this.dot(this)
|
|
sub(n)
Returns difference between receiver and given node
|
|
toString()
String representation
|
|
translate(dx, dy, dz)
Change position of receiver by given values
|
|
translateX(dx)
Change horizontal position of receiver by given values
|
|
translateXZ(dx, dz)
Change position of receiver by given values
|
|
translateY(dy)
Change horizontal position of receiver by given values
|
|
translateYZ(dy, dz)
Change position of receiver by given values
|
|
translateZ(dz)
Change vertical position of receiver by given values
|
Class Detail
Node(x, y, z)
2d xz plane node implementation. The meaning of current implementation is only geometric, because DOFs itself are stored in beams (for both computational and graphic postprocessing part)
- Parameters:
- {float} x
- x coordinate of node
- {float} y
- y coordinate of node
- {float} z
- z coordinate of node
Field Detail
{float}
x
x coordinate
{float}
y
y coordinate
{float}
z
z coordinate
Method Detail
{Node}
add(n)
Returns sum of receiver and given node
- Parameters:
- {Node} n
- node to be substracted
- Returns:
- {Node} difference this+node
<static>
{Node}
Node.create(x, y, z)
Constructor, see Node for input parameters description
- Parameters:
- x
- y
- z
- Returns:
- {Node} new Node object
{Node}
cross(n)
Returns cross product of receiver and given node
- Parameters:
- {Node} n
- node to be crossed
- Returns:
- {Node} cross product this x node
{float}
dot(n)
Returns dot product of receiver and given node
- Parameters:
- {Node} n
- node to be crossed
- Returns:
- {float} dot product this . node
{Node}
mulf(f)
Returns receiver multiplied by given number
- Parameters:
- {float} f
- multiplicator
- Returns:
- {Node} product of multiplication f*this
{float}
norm()
Returns (Eucleidian) norm of receiver sqrt(this.dit(this))
- Returns:
- {float} norm of receiver
setX(x)
Set new x coordinate to receiver
- Parameters:
- x
- x coordinate of new position
setXYZ(x, y, z)
Sets new position to receiver
- Parameters:
- {float} x
- x coordinate of new position
- {float} y
- y coordinate of new position
- {float} z
- z coordinate of new position
setXZ(x, z)
Sets new position to receiver
- Parameters:
- {float} x
- x coordinate of new position
- {float} z
- z coordinate of new position
setY(y)
Set new x coordinate to receiver
- Parameters:
- y
- y coordinate of new position
setYZ(y, z)
Sets new position to receiver
- Parameters:
- {float} y
- y coordinate of new position
- {float} z
- z coordinate of new position
setZ(z)
Set new z coordinate to receiver
- Parameters:
- z
- z coordinate of new position
{float}
squaredNorm()
Returns square norm of receiver this.dot(this)
- Returns:
- {float} squared norm of receiver
{Node}
sub(n)
Returns difference between receiver and given node
- Parameters:
- {Node} n
- node to be substracted
- Returns:
- {Node} difference this-node
{String}
toString()
String representation
- Returns:
- {String} string representation
translate(dx, dy, dz)
Change position of receiver by given values
- Parameters:
- {float} dx
- length of translation in x direction
- {float} dy
- length of translation in y direction
- {float} dz
- length of translation in z direction
translateX(dx)
Change horizontal position of receiver by given values
- Parameters:
- {float} dx
- length of translation in x direction
translateXZ(dx, dz)
Change position of receiver by given values
- Parameters:
- {float} dx
- length of translation in x direction
- {float} dz
- length of translation in z direction
translateY(dy)
Change horizontal position of receiver by given values
- Parameters:
- {float} dy
- length of translation in y direction
translateYZ(dy, dz)
Change position of receiver by given values
- Parameters:
- {float} dy
- length of translation in y direction
- {float} dz
- length of translation in z direction
translateZ(dz)
Change vertical position of receiver by given values
- Parameters:
- {float} dz
- length of translation in z direction