Uses of Class
rope.vector.vec2
Packages that use vec2
Package
Description
-
Uses of vec2 in rope
-
Uses of vec2 in rope.core
Modifier and TypeMethodDescriptionvoid
void
void
Rope.greaterThan
(vec2 x, vec2 y) Rope.greaterThanEqual
(vec2 x, vec2 y) Rope.lessThanEqual
(vec2 x, vec2 y) void
void
void
void
Rope.smoothstep
(vec2 edge0, vec2 edge1, vec2 x) void
void
void
void
void
-
Uses of vec2 in rope.costume
Methods in rope.costume that return vec2Modifier and TypeMethodDescriptionR_Line2D.a()
R_Line2D.b()
R_Line2D.coord
(float normal_pos) return coordinate of the normal position on the line from the a pointR_Line2D.coord
(int rank) return coordinate of distance from the a point on the lineR_Primitive.get_dir()
vec2[]
R_Costume.get_pair()
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.Methods in rope.costume with parameters of type vec2Modifier and TypeMethodDescriptionvoid
void
R_Line2D.intersection
(R_Line2D target, vec2... exception) Return the intersection point between this line and an other one.make a displacement of the linevoid
void
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
-
Uses of vec2 in rope.pixo
-
Uses of vec2 in rope.svg
-
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) JITTERvec2.jitter
(int range_x, int range_y) 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 vectorvec2.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
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
https://forum.processing.org/two/discussion/90/point-and-line-intersection-detection refactoring from Quark AlgorithmNormalize vectorrandomreturn tangent of the vector direction