Uses of Class
rope.vector.vec2
Packages that use vec2
Package
Description
-
Uses of vec2 in rope.core
Modifier and TypeMethodDescriptioneach element add of each vector mult each one in the orderRope.barycenter
(vec2... v) each element multipry of each vector mult each one in the orderRope.projection
(float angle) polar projection 2DRope.projection
(float angle, float radius) Rope.projection
(vec2 direction) ProjectionRope.projection
(vec2 direction, float radius) Rope.projection
(vec2 direction, vec2 origin, float radius) Rope.smoothstep
(vec2 edge0, vec2 edge1, vec2 x) each element substract of each vector mult each one in the orderRope.to_cartesian_2D
(float angle) main method to_cartesian_2DRope.to_cartesian_2D
(float angle, float radius) Rope.to_cartesian_2D
(float pos, vec2 range, vec2 target_rad, float distance) *** ACHTUNG *** It's not clear must find time to work on explanation of this function If I remember is to compare to vec but not sure...Modifier and TypeMethodDescriptioneach element add of each vector mult each one in the ordervoid
void
Rope.barycenter
(vec2... v) void
boolean
float
Rope.greaterThan
(vec2 x, vec2 y) Rope.greaterThanEqual
(vec2 x, vec2 y) boolean
check if the point is aligned with the lineboolean
Check if the three points is alignedboolean
Rope.in_segment
(R_Line2D line, vec2 point, float marge) boolean
Rope.in_segment
(vec2 start, vec2 end, vec2 point, float range) Rope.lessThanEqual
(vec2 x, vec2 y) each element multipry of each vector mult each one in the ordervoid
close to Processing function set()void
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itRope.projection
(vec2 direction) ProjectionRope.projection
(vec2 direction, float radius) Rope.projection
(vec2 direction, vec2 origin, float radius) void
void
void
void
Rope.smoothstep
(vec2 edge0, vec2 edge1, vec2 x) each element substract of each vector mult each one in the ordervoid
Rope.to_cartesian_2D
(float pos, vec2 range, vec2 target_rad, float distance) *** ACHTUNG *** It's not clear must find time to work on explanation of this function If I remember is to compare to vec but not sure...Rope.to_cartesian_3D
(vec2 pos, vec2 range, float size) *** ACHTUNG *** It's not clear must find time to work on explanation of this function If I remember is to compare to vec but not sure...void
void
void
void
-
Uses of vec2 in rope.costume
Methods in rope.costume that return vec2Modifier and TypeMethodDescriptionR_Primitive.get_dir()
vec2[]
R_Costume.get_pair()
vec2[]
R_Impact.get_polygon_array_heart()
R_Impact.pos()
Methods in rope.costume with parameters of type vec2Modifier and TypeMethodDescriptionvoid
Constructors in rope.costume with parameters of type vec2ModifierConstructorDescriptionR_Primitive
(processing.core.PApplet pa, int summits, float angle, vec2 dir) R_Primitive
(processing.core.PApplet pa, int summits, float angle, vec2 dir, processing.core.PGraphics other) -
Uses of vec2 in rope.gui
Modifier and TypeMethodDescriptionR_Dropdown.get_content_text_pos()
R_Dropdown.get_header_text_pos()
Crope.pos()
R_Mol.pos()
Crope.size()
R_Mol.size()
Modifier and TypeMethodDescriptionvoid
R_Board.add_button
(vec2 size_elem, float step, String... label) void
R_Board.add_slider
(vec2 size_elem, float step, String... label) void
R_Board.add_slotch
(vec2 size_elem, int num, float step, String... label) boolean
R_Dropdown.set_box_text_pos
(vec2 pos) R_Dropdown.set_header_text_pos
(vec2 pos) R_Mol.set_offset
(vec2 offset) Crope.set_pos_label
(vec2 pos) Crope.set_pos_value
(vec2 pos) VALUE -
Uses of vec2 in rope.gui.button
Fields in rope.gui.button declared as vec2Methods in rope.gui.button with parameters of type vec2Constructors in rope.gui.button with parameters of type vec2 -
Uses of vec2 in rope.gui.palette
Methods in rope.gui.palette with parameters of type vec2Constructors in rope.gui.palette with parameters of type vec2 -
Uses of vec2 in rope.gui.slider
Methods in rope.gui.slider that return vec2Modifier and TypeMethodDescriptionR_Slider.get_max_pos()
R_Slider.get_min_pos()
vec2[]
R_Slider.get_mol_pos()
R_Slider.get_mol_pos
(int index) R_Slider.get_molette_size
(int index) Methods in rope.gui.slider with parameters of type vec2Modifier and TypeMethodDescriptionR_Slider.set_pos_mol
(vec2... pos_mol) this function is used to set the final value of the sliderR_Slider.set_size_mol
(vec2 size) Constructors in rope.gui.slider with parameters of type vec2 -
Uses of vec2 in rope.mesh
Modifier and TypeMethodDescriptionR_Line2D.a()
R_Line2D.b()
R_Line2D.barycenter()
R_Line2D.coord
(float normal_pos) Deprecated.instead use vec2 point(float normal_pos)R_Line2D.coord
(int len) Deprecated.instead use vec2 point(int len)R_Bloc.get_coord()
R_Line2D.intersection
(R_Line2D target) Return the intersection point between this line and an other one.R_Line2D.intersection
(R_Line2D target, vec2... exception) Return the intersection point between this line and an other one.return the projection of the point on the lineR_Line2D.point
(float normal_pos) projected point on the line, the distance is calculated by multiplication the distance line by the normal argument where the starting point is the first point.R_Line2D.point
(int len) R_Delaunay_Vertex.to_vec2()
Modifier and TypeMethodDescriptionvoid
use for temporary changevoid
void
void
use for temporary changeR_Line2D.intersection
(R_Line2D target, vec2... exception) Return the intersection point between this line and an other one.Check if a vec point is on the line, if it's true return ne normal position on it '0' to '1' where '0' represent a and 'b' for '1'.make a displacement of the linereturn the projection of the point on the linevoid
use for definitive changementvoid
use for definitive changement -
Uses of vec2 in rope.pixo
-
Uses of vec2 in rope.svg
-
Uses of vec2 in rope.tool
Modifier and TypeMethodDescriptionR_Puppet2D.get_puppet_clock
(int index) R_Puppet2D.get_puppet_online
(int index) R_Puppet2D.get_puppet_origin
(int index) R_Puppet2D.get_puppet_projection
(int index) -
Uses of vec2 in rope.utils
Methods in rope.utils that return vec2Modifier and TypeMethodDescriptionvec2[]
R_FX.get_pair()
R_FX.get_pair
(int which) R_FX.get_resolution()
R_FX.get_scale()
static vec2
static vec2
Methods in rope.utils with parameters of type vec2 -
Uses of vec2 in rope.vector
Methods in rope.vector that return vec2Modifier and TypeMethodDescriptionvec.ab()
vec2.add
(float a) vec2.add
(float ax, float ay) add float valuevec2.add_x
(float x) vec2.add_y
(float y) vec2.constrain
(float max) vec2.constrain
(float min, float max) Constrains a value to not exceed a maximum and minimum value.vec2.copy()
copy() return all the component of vecvec2.cos_wave
(int timeline, float s) vec2.cos_wave
(int timeline, float sx, float sy) vec2.dir()
return normal cartesian angle coordvec2.dir
(float a_x, float a_y) return normal cartesian angle coordreturn normal cartesian angle coordvec2.div
(float d) vec2.div
(float dx, float dy) divide Vector by a float valuevec2.div_x
(float x) vec2.div_y
(float y) vec2.inv()
vec2.jitter
(int range) Deprecated.vec2.jitter
(int range_x, int range_y) Deprecated.Deprecated.vec2.limit
(float max) vec2.map
(float minIn, float maxIn, float minOut, float maxOut) vec2.mod
(float mod) vec2.mod
(float mod_x, float mod_y) vec2.mult
(float m) vec2.mult
(float mx, float my) multiply Vector by different float valuevec2.mult_x
(float x) vec2.mult_y
(float y) vec2.normalize()
Normalize vectorreturn the orthogonal projection of the point of the vector or on the line.vec2.pow
(float pow) vec2.pow
(float pow_x, float pow_y) return the power result of this vectorvec.pq()
vec2.rand
(float max) randomvec2.rand
(float min, float max) randomrandomvec2.s
(float x) vec2.set
(float v) vec2.set
(float[] source) vec2.set
(float x, float y) vec2.set
(int[] source) vec2.set_to
(int index, float arg) vec2.sin_wave
(int timeline, float s) vec2.sin_wave
(int timeline, float sx, float sy) vec.st()
vec2.sub
(float s) vec2.sub
(float sx, float sy) sub float valuevec2.sub_x
(float x) vec2.sub_y
(float y) vec2.t
(float y) vec2.tan()
return tangent of the vector directionvec2.tan
(float a_x, float a_y) return tangent of the vector directionreturn tangent of the vector directionvec2.u
(float x) vec.uv()
return multi vec2, vec3, vec4 componentvec2.v
(float y) vec2.wave
(int timeline, float s) WAVEvec2.wave
(int timeline, float sx, float sy) vec.ww()
vec.wx()
vec.wy()
vec.wz()
vec2.x
(float x) vec.xw()
vec.xx()
vec.xy()
vec.xz()
vec2.y
(float y) vec.yw()
vec.yx()
vec.yy()
vec.yz()
vec.zw()
vec.zx()
vec.zy()
vec.zz()
Methods in rope.vector with parameters of type vec2Modifier and TypeMethodDescriptionfloat
return heading angleboolean
boolean
return true if the vector this and vector target are in the same vector areaConstrains a value to not exceed a maximum and minimum value.return normal cartesian angle coordboolean
return true if the vector this is equals to vector targetboolean
vec2.in_segment
(vec2 start, vec2 end, float range) https://forum.processing.org/two/discussion/90/point-and-line-intersection-detection refactoring from Quark AlgorithmDeprecated.Normalize vectorreturn the orthogonal projection of the point of the vector or on the line.randomreturn tangent of the vector direction