Library "Vector2FunctionClip" Sutherland-Hodgman polygon clipping algorithm. reference: . rosettacode.org . clip(source, reference) Perform Clip operation on a vector with another. Parameters: source : array . Source polygon to be clipped. reference : array . Reference polygon to clip source. Returns: array.
Library "Vector2Array" functions to handle vector2 Array operations. . references: docs.unity3d.com gist.github.com github.com gist.github.com gist.github.com gist.github.com . from(source, prop_sep, vect_sep) Generate array of vector2 from string. Parameters: source : string Source string of the vectors. prop_sep : string Separator character...
Library "Segment2" Structure representation of a directed straight line in two dimensions from origin to target vectors. . reference: graphics.stanford.edu . new(origin, target) Generate a new segment. Parameters: origin : Vector2 . Origin of the segment. target : Vector2 . Target of the segment. Returns: Segment2. new(origin_x, origin_y,...
Library "Vector2DrawQuad" functions to handle vector2 Quad drawing operations. new(a, b, c, d, xloc, bg_color, line_color, line_style, line_width) Draws a quadrilateral with background fill. Parameters: a : v2 . Vector2 object, in the form `(x, y)`. b : v2 . Vector2 object, in the form `(x, y)`. c : v2 . Vector2 object, in the...
Library "Vector2DrawTriangle" Functions to draw a triangle and manipulate its properties. new(a, b, c, xloc, bg_color, line_color, line_style, line_width) Draws a triangle with background fill using line prototype. Parameters: a : v2 . Vector2 object, in the form `(x, y)`. b : v2 . Vector2 object, in the form `(x, y)`. c : v2 ....
Library "CommonTypesDrawing" Provides a common library source for common types of used graphical drawing structures. Includes: `Triangle, Quad, Polygon` Triangle Representation of a triangle using lines and linefill. Fields: ab : Edge of point a to b. bc : Edge of point b to c. ca : Edge of point c to a. fill : Fill of the...
Library "Vector2DrawLine" Extends line type with methods for Vector2 and Segment2. new(origin, target, xloc, extend, color, style, width) Draws a line using Segment type to hold its coordinate properties.. Parameters: origin : Vector2 . Origin vector of the line. target : Vector2 . Target vector of the line. xloc : string extend :...
Library "Vector2" Representation of two dimensional vectors or points. This structure is used to represent positions in two dimensional space or vectors, for example in spacial coordinates in 2D space. ~~~ references: docs.unity3d.com gist.github.com github.com gist.github.com gist.github.com gist.github.com ~~~ new(x, y) Create a new Vector2...
A user defined function library of probability focused functions.