public class iVec2 extends iVec
ALPHA, BLACK, BLANC, BLANK, BLEU, BLOOD, BLUE, BOTTLE, BOUTEILLE, BRIGHTNESS, CARMIN, CARMINE, CARTESIAN, CHAOS, COS, CYAN, DRAW, DYNAMIC, EQUATION, EULER, FIT, FLUID, G, GARNET, GARNET_DEEP, GOLD, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, GRAY_1, GRAY_2, GRAY_3, GRAY_4, GRAY_5, GRAY_6, GRAY_7, GRAY_8, GRAY_9, GRAY_MEDIUM, GREEN, GRENAT, GRENAT_PROFOND, GRIS, GRIS_1, GRIS_2, GRIS_3, GRIS_4, GRIS_5, GRIS_6, GRIS_7, GRIS_8, GRIS_9, GRIS_MOYEN, HUE, JAUNE, MAGENTA, MAGNETIC, MIX, NOIR, NONE, NOTHING, NULL, OR, ORANGE, ORDER, PERLIN, PHI, PINK, PIXEL, POLAR, PURPLE, RANDOM, RANDOM_2, RANDOM_3, RANDOM_4, RANDOM_QUARTER, RANDOM_RANGE, RANDOM_ROOT, RANDOM_X_A, RANDOM_X_B, RANDOM_ZERO, RED, ROOT2, ROSE, ROUGE, SANG, SATURATION, SIN, STAR, STATIC, TAN, TRIG_0, TRIG_1, TRIG_2, TRIG_3, TRIG_4, VERT, VIOLET, WHITE, YELLOW
Constructor and Description |
---|
iVec2() |
iVec2(int v) |
iVec2(int x,
int y) |
iVec2(iVec v) |
Modifier and Type | Method and Description |
---|---|
iVec2 |
add(int a) |
iVec2 |
add(int a_x,
int a_y)
add
|
iVec2 |
add(iVec v) |
iVec2 |
copy()
copy
|
iVec2 |
div(int d) |
iVec2 |
div(int d_x,
int d_y)
div
|
iVec2 |
div(iVec v) |
boolean |
equals(int target) |
boolean |
equals(int tx,
int ty) |
boolean |
equals(iVec2 target)
equals
|
iVec2 |
mult(int m) |
iVec2 |
mult(int m_x,
int m_y)
mult
|
iVec2 |
mult(iVec v) |
iVec2 |
set_s(int x) |
iVec2 |
set_t(int y) |
iVec2 |
set_u(int x) |
iVec2 |
set_v(int y) |
iVec2 |
set_x(int x) |
iVec2 |
set_y(int y) |
iVec2 |
set(int arg) |
iVec2 |
set(int x,
int y)
set
|
iVec2 |
set(iVec v) |
iVec2 |
sub(int a) |
iVec2 |
sub(int a_x,
int a_y)
sub
|
iVec2 |
sub(iVec v) |
int |
sum()
sum
|
java.lang.String |
toString() |
random_next_gaussian, random_next_gaussian, random_next_gaussian, random_next_gaussian, version
public iVec2()
public iVec2(int v)
public iVec2(int x, int y)
public iVec2(iVec v)
public iVec2 set(int x, int y)
x
- y
- public iVec2 set(int arg)
public iVec2 set_x(int x)
public iVec2 set_y(int y)
public iVec2 set_s(int x)
public iVec2 set_t(int y)
public iVec2 set_u(int x)
public iVec2 set_v(int y)
public int sum()
public iVec2 mult(int m_x, int m_y)
m_x
- m_y
- public iVec2 mult(int m)
public iVec2 div(int d_x, int d_y)
d_x
- d_y
- public iVec2 div(int d)
public iVec2 add(int a_x, int a_y)
a_x
- a_y
- public iVec2 add(int a)
public iVec2 sub(int a_x, int a_y)
a_x
- a_y
- public iVec2 sub(int a)
public boolean equals(iVec2 target)
target
- public boolean equals(int target)
public boolean equals(int tx, int ty)
public iVec2 copy()
public java.lang.String toString()
toString
in class java.lang.Object
Processing Library Rope by Stanlepunk. (c) 2019