public class R_Line2D extends R_Image implements R_Constants
ALPHA, BLANK, BRIGHTNESS, CARTESIAN, CENTER, CHAOS, CLOSE, CORNER, CORNERS, COS, DIAMETER, DRAW, DYNAMIC, EQUATION, EULER, FIT, FLUID, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HUE, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NONE, NOTHING, NULL, OPEN, ORDER, PERLIN, PHI, PI, PIXEL, POLAR, RADIUS, RAND, ROOT2, SATURATION, SCALE, SIN, STAR, STATIC, TAN, TAU, TRIG_0, TRIG_1, TRIG_2, TRIG_3, TRIG_4, TWO_PI
ABRICOT, ACAJOU, AMARANTE, AMBRE, ARGENT, AUBERGINE, AZUR, BIS, BISTRE, BLACK, BLANC, BLEU, BLOND, BLOOD, BLUE, BOUTEILLE, BRIQUE, BRONZE, BROWN, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, EVEQUE, FRANCE, FUSCHIA, GOLD, GRAY, GRAY_MEDIUM, GREEN, GRENAT, GRIS, GRIS_MOYEN, GUEULES, IMPERIAL, JAUNE, LAPIS_LAZULI, LAVANDE, LILAS, LIME, LIN, LUNE, MAGENTA, MANDARINE, MARRON, MAUVE, MIMOSA, MOON, MOUNTBATTEN, NANKIN, NAPLE, NOIR, NOISETTE, NUIT, OCRE, OCRE_JAUNE, OCRE_ROUGE, OLIVE, OR, ORANGE, OUTREMER, PAYNE, PERLE, PERROQUET, PINK, PISTACHE, POURPRE, PRUNE, PURPLE, RED, ROSE, ROUGE, SANG, SAPIN, SAUGE, SEPIA, SHAKUDOU, SILVER, SINOPLE, SMALT, SOURIS, TAUPE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
Constructor and Description |
---|
R_Line2D(processing.core.PApplet pa) |
R_Line2D(processing.core.PApplet pa,
float ax,
float ay,
float bx,
float by) |
R_Line2D(processing.core.PApplet pa,
vec2 a,
vec2 b) |
Modifier and Type | Method and Description |
---|---|
vec2 |
a() |
void |
a(float x,
float y) |
void |
a(vec2 a) |
float |
angle()
Return the angle of the line from "a" to "b"
|
R_Line2D |
angle(float angle)
Change the angle from the starting point "a"
|
vec2 |
b() |
void |
b(float x,
float y) |
void |
b(vec2 b) |
R_Line2D |
copy() |
float |
dist()
Return the length of the line
|
vec2 |
intersection(R_Line2D target)
Return the intersection point between this line and an other one.
|
vec2 |
intersection(R_Line2D target,
vec2... exception)
Return the intersection point between this line and an other one.
|
R_Line2D |
offset(vec2 offset)
make a displacement of the line
|
void |
set(float ax,
float ay,
float bx,
float by) |
void |
set(vec2 a,
vec2 b) |
void |
show() |
void |
show(processing.core.PGraphics other) |
java.lang.String |
toString() |
beginShape, beginShape, beginShape, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, endShape, endShape, endShape, endShape, get_renderer, get_renderer, line, line, line, line, pass_graphic, point, point, point, point, pop, push, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, rectMode, renderer_P3D, rotate, rotateX, rotateY, rotateZ, set, set, set, set, set, square, translate, translate, translate, triangle, triangle, triangle, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex
random_next_gaussian, random_next_gaussian, random_next_gaussian, random_next_gaussian, version
public R_Line2D(processing.core.PApplet pa)
pa
- public R_Line2D(processing.core.PApplet pa, float ax, float ay, float bx, float by)
pa
- ax
- ay
- bx
- by
- public void set(float ax, float ay, float bx, float by)
ax
- ay
- bx
- by
- public void a(vec2 a)
a
- public void a(float x, float y)
x
- y
- public void b(vec2 b)
b
- public void b(float x, float y)
x
- y
- public vec2 a()
public vec2 b()
public R_Line2D offset(vec2 offset)
offset
- public void show()
public void show(processing.core.PGraphics other)
other
- public float dist()
public vec2 intersection(R_Line2D target)
target
- public vec2 intersection(R_Line2D target, vec2... exception)
target
- exception,
- list of vec2 point make an exception node, helpful when you don't want a specific node pointpublic float angle()
public R_Line2D angle(float angle)
angle
- public R_Line2D copy()
public java.lang.String toString()
toString
in class java.lang.Object