User Tools

Site Tools


pyflow:functions

Vector

between

between vector a and b

setDataG; out setDataG; out setDataG; a setDataG; b setDataG; m setDataG; out

INPUT PINS

OUTPUT PINS

out VectorPin,

betweenList

between list a and b

setDataG; m

INPUT PINS

a AnyPin, b AnyPin, m Integer,

OUTPUT PINS

out AnyPin,

move

add vector v to a list of vectors a

setDataG; out setDataG; out setDataG; v [] setDataG; out

INPUT PINS

OUTPUT PINS

out VectorPin,

vecAdd

adds vector a and b

setDataG; out setDataG; out setDataG; a setDataG; b setDataG; out

INPUT PINS

OUTPUT PINS

out VectorPin,

vecCreate

vector by coordinates X, Y, Z.

setDataG; out setDataG; out setDataG; X setDataG; Y setDataG; Z create vector; Vector (0.0, 0.0, 0.0) setDataG; out

INPUT PINS

X Float, Y Float, Z Float,

OUTPUT PINS

out VectorPin,

vecDotProduct

Dot product

INPUT PINS

a AnyPin, b AnyPin,

OUTPUT PINS

out FloatPin,

vecSubstract

substracts vector a and b

setDataG; out setDataG; out setDataG; a setDataG; b setDataG; out

INPUT PINS

OUTPUT PINS

out VectorPin,

vecX

vector coordinate x

setDataG; Vector

INPUT PINS

Vector VectorPin,

OUTPUT PINS

out FloatPin,

vecY

vector coordinate y

setDataG; Vector

INPUT PINS

Vector VectorPin,

OUTPUT PINS

out FloatPin,

vecZ

vector coordinate z

setDataG; Vector

INPUT PINS

Vector VectorPin,

OUTPUT PINS

out FloatPin,

workspace

setDataG; name workspace called

INPUT PINS

name String, temp BoolPin,

OUTPUT PINS

out StringPin,

Rotation

rotCreate

create Rotation from axis and angle

setDataG; Axis

INPUT PINS

Axis VectorPin, Angle FloatPin,

OUTPUT PINS

rotCreateBy2Vectors

create Rotation between vectors From and To

setDataG; From setDataG; To

INPUT PINS

From VectorPin, To VectorPin,

OUTPUT PINS

rotCreateBy3Vectors

three vectors that define rotated axes directions + an optional 3-characher string of capital letters 'X', 'Y', 'Z' that sets the order of importance of the axes (e.g., 'ZXY' means z direction is followed strictly, x is used but corrected if necessary, y is ignored) 

setDataG; X setDataG; Y setDataG; Z

INPUT PINS

OUTPUT PINS

rotCreateEuler

create Rotation from Euler angles

INPUT PINS

Yaw FloatPin, Pitch FloatPin, Roll FloatPin,

OUTPUT PINS

rotMultiply

concatenate Rotation a and b

INPUT PINS

OUTPUT PINS

Placement

pmCreate

create Placement from Base and Rotation 

setDataG; base

INPUT PINS

base VectorPin, rotation RotationPin,

OUTPUT PINS

pmMultiply

multiply Placements a, b

INPUT PINS

OUTPUT PINS

Numpy

add

add two float (lists)

setDataG; x setDataG; y

INPUT PINS

x Float, y Float,

OUTPUT PINS

out FloatPin,

arctan

arctan(x)

INPUT PINS

data FloatPin,

OUTPUT PINS

out FloatPin,

arctan2

arctan2(y,x)

INPUT PINS

OUTPUT PINS

out FloatPin,

cos

a*cos(b*x+c)

INPUT PINS

OUTPUT PINS

out FloatPin,

deg2rad

degree to radians

INPUT PINS

degree FloatPin,

OUTPUT PINS

out FloatPin,

fliplr

fliplr(data)    Flip array in the left/right direction.

INPUT PINS

data FloatPin,

OUTPUT PINS

out FloatPin,

flipud

flipud(data)    Flip array in the up/down  direction.

INPUT PINS

data FloatPin,

OUTPUT PINS

out FloatPin,

interp_cubic

Interpolate a 1-D function.
xp and yp are arrays of values used to approximate some function 
f: y = f(x). 
This class returns a function whose call method 
uses interpolation to find the value of new points x.

INPUT PINS

OUTPUT PINS

out FloatPin,

interp_lin

One-dimensional linear interpolation.
Returns the one-dimensional piecewise linear interpolant 
to a function with given discrete data points (xp, fp), 
evaluated at x.

INPUT PINS

OUTPUT PINS

out FloatPin,

linSpace

create a linear Space

INPUT PINS

start FloatPin, stop FloatPin, num IntPin,

OUTPUT PINS

out FloatPin,

linearTrafo

a*x + b

INPUT PINS

data FloatPin, a FloatPin, b FloatPin,

OUTPUT PINS

out FloatPin,

max

maximum value in list x

setDataG; x maximum of list 1.5

INPUT PINS

x Float,

OUTPUT PINS

out FloatPin,

min

minimum of list x

setDataG; x

INPUT PINS

x Float,

OUTPUT PINS

out FloatPin,

onesList

create a list of ones

INPUT PINS

size IntPin,

OUTPUT PINS

out FloatPin,

rad2deg

radians to degree

INPUT PINS

radians FloatPin,

OUTPUT PINS

out FloatPin,

randomList

create a random list

INPUT PINS

size IntPin,

OUTPUT PINS

out FloatPin,

reshape

reshape(data, (a [,b [,c]]))    
Gives a new shape to an array without changing its data.      

INPUT PINS

data FloatPin, a IntPin, b IntPin, c IntPin,

OUTPUT PINS

out FloatPin,

roll

roll(a, shift[, axis])  Roll array elements along a given axis. 

INPUT PINS

data FloatPin, shift IntPin, axis IntPin,

OUTPUT PINS

out FloatPin,

round

round float list 

INPUT PINS

data FloatPin, decimals IntPin,

OUTPUT PINS

out FloatPin,

scale

multiply datalist with factor 

INPUT PINS

data FloatPin, factor FloatPin,

OUTPUT PINS

out FloatPin,

sin

a*sin(b*x+c)

INPUT PINS

OUTPUT PINS

out FloatPin,

subarray

returns data[umin:umax,vmin:vmax]

setDataG; umin setDataG; umax setDataG; vmin setDataG; vmax

INPUT PINS

data FloatPin, umin Integer, umax Integer, vmin Integer, vmax Integer,

OUTPUT PINS

out FloatPin,

sum

sum of list x

setDataG; x

INPUT PINS

x Float,

OUTPUT PINS

out FloatPin,

tan

a*tan(b*x+c)

INPUT PINS

OUTPUT PINS

out FloatPin,

unwrap

Unwrap by changing deltas between values to 2*pi complement.
Unwrap radian phase p by changing 
absolute jumps greater than discont 
to their 2*pi complement along the given axis.

INPUT PINS

radians FloatPin,

OUTPUT PINS

out FloatPin,

zerosList

create a list of zeros

INPUT PINS

size IntPin,

OUTPUT PINS

out FloatPin,

zip

combine coordinate lists to a list of vectors 

setDataG; out setDataG; out

INPUT PINS

OUTPUT PINS

out VectorPin,

zipRotation

combine axis(x,y,z) and angle lists to a list of rotations

INPUT PINS

OUTPUT PINS

Datetime

now

INPUT PINS

OUTPUT PINS

out FloatPin,

strftime

INPUT PINS

timestamp FloatPin, sformat StringPin,

OUTPUT PINS

out StringPin,

time

INPUT PINS

hour IntPin, minute IntPin, second IntPin, microsecond IntPin,

OUTPUT PINS

out FloatPin,

Nodes by category

Datetime

Default

Document

Placement

Rotation

Vector

numpy|array

numpy|interpolate

numpy|operations

numpy|random

numpy|trigonometry

pyflow/functions.txt · Last modified: 2020/01/19 10:03 by admin