Package rope.vector
Class bvec
java.lang.Object
rope.vector.bvec
- All Implemented Interfaces:
R_Constants
-
Field Summary
FieldsFields inherited from interface rope.core.R_Constants
ARC, BEGIN, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHOICE, CHORD, CIRCULAR, CLOSE, CLOUD, CORNER, CORNERS, COS, CROSS, CROSS_BOX_2, CROSS_BOX_3, CROSS_RECT, CUBE_LINE, CURVE_VERTEX, DECAGON, DIAGONAL, DIAMETER, DODECAGON, DOWN, DRAW, DXF, DYNAMIC, EAST, ELLIPSE, END, EQUATION, EULER, FIRST, FIT, FLOWER, FLUID, FX2D, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HALF, HALF_PI, HENDECAGON, HEPTAGON, HEXAGON, HORIZONTAL, HOUSE, HPI, ICOSI_DODECAHEDRON_LINE, IMAGE, JAVA2D, LANDSCAPE, LAST, LEAF, LEFT, LINE, LINEAR, MAD, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NEXT, NONAGON, NONE, NORMAL, NORTH, NORTH_EAST, NORTH_WEST, NOTCH, NOTHING, NULL, OCTOGON, OCTOHEDRON_LINE, OPEN, ORDER, P2D, P3D, PDF, PENTAGON, PERLIN, PHI, PI, PIE, PIXEL, POINT, POLAR, POLYGON, PORTRAIT, POW, PREVIOUS, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SIDE, SIN, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, START, STATIC, STOP, SVG, TAN, TAU, TETRAHEDRON, TETRAHEDRON_LINE, TEXT, TOP, TREE, TRIANGLE, TWO_PI, UP, VERSION, VERTEX, VERTICAL, VIRUS, WALK, WEST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
a()
ab()
abc()
abcd()
abcde()
abcdef()
boolean
all()
boolean
any()
boolean[]
array()
return the list of componentboolean
b()
boolean
c()
boolean
d()
boolean
e()
boolean
f()
get()
get
(int index) int
get_size()
Deprecated.boolean
only()
boolean
only
(int... index) int
size()
boolean
w()
boolean
x()
return single boolean componentxy()
return multi float componentxyz()
xyzw()
boolean
y()
boolean
z()
-
Field Details
-
x
public boolean x -
y
public boolean y -
z
public boolean z -
w
public boolean w -
e
public boolean e -
f
public boolean f
-
-
Constructor Details
-
bvec
public bvec(int size)
-
-
Method Details
-
get_size
Deprecated.- Returns:
- the number of components
-
size
public int size()- Returns:
- the number of components
-
get
-
get
-
all
public boolean all()- Returns:
- true if all elements is true
-
any
public boolean any()- Returns:
- true if all most one element is true;
-
only
public boolean only()- Returns:
- true if only one element is true
-
only
public boolean only(int... index) - Parameters:
index
- if all and only thes elements of the index arr is true, return true- Returns:
-
x
public boolean x()return single boolean component- Returns:
- boolean
-
y
public boolean y() -
z
public boolean z() -
w
public boolean w() -
a
public boolean a() -
b
public boolean b() -
c
public boolean c() -
d
public boolean d() -
e
public boolean e() -
f
public boolean f() -
xy
return multi float component- Returns:
- float
-
xyz
-
xyzw
-
ab
-
abc
-
abcd
-
abcde
-
abcdef
-
array
public boolean[] array()return the list of component- Returns:
- boolean []
-