var searchIndex = {}; searchIndex["simple_vector2d"] = {"doc":"Simple and generic implementation of 2D vectors","items":[[3,"Vector2","simple_vector2d","Representation of a mathematical vector e.g. a position or velocity",null,null],[12,"0","","",0,null],[12,"1","","",0,null],[0,"consts","","Constants for common vectors",null,null],[17,"ZERO_F32","simple_vector2d::consts","The zero vector",null,null],[17,"UP_F32","","A unit vector pointing upwards",null,null],[17,"DOWN_F32","","A unit vector pointing downwards",null,null],[17,"RIGHT_F32","","A unit vector pointing to the right",null,null],[17,"LEFT_F32","","A unit vector pointing to the left",null,null],[17,"ZERO_F64","","The zero vector",null,null],[17,"UP_F64","","A unit vector pointing upwards",null,null],[17,"DOWN_F64","","A unit vector pointing downwards",null,null],[17,"RIGHT_F64","","A unit vector pointing to the right",null,null],[17,"LEFT_F64","","A unit vector pointing to the left",null,null],[11,"default","simple_vector2d","",0,{"inputs":[],"output":{"name":"vector2"}}],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"unit_vector","","Creates a new unit vector in a specific direction",0,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"normalise","","Normalises the vector",0,null],[11,"length","","Returns the magnitude/length of the vector",0,null],[11,"length_squared","","Returns the magnitude/length of the vector squared",0,null],[11,"direction","","Returns direction the vector is pointing",0,null],[11,"direction_to","","Returns direction towards another vector",0,null],[11,"distance_to","","Returns the distance betweens two vectors",0,null],[11,"distance_to_squared","","Returns the distance betweens two vectors",0,null],[11,"is_any_nan","","Returns `true` if either component is `NaN`.",0,null],[11,"is_any_infinite","","Returns `true` if either component is positive or negative infinity.",0,null],[11,"is_all_finite","","Returns `true` if both components are neither infinite nor `NaN`.",0,null],[11,"is_all_normal","","Returns `true` if both components are neither zero, infinite, subnormal nor `NaN`.",0,null],[11,"dot","","Returns the dot product of two vectors",0,null],[11,"add","","",0,null],[11,"sub","","",0,null],[11,"add_assign","","",0,null],[11,"sub_assign","","",0,null],[11,"mul_assign","","",0,null],[11,"div_assign","","",0,null],[11,"mul","","",0,null],[11,"div","","",0,null],[11,"neg","","",0,null],[11,"into","","",0,null],[11,"from","","",0,null],[11,"into","","",0,null],[11,"from","","",0,null]],"paths":[[3,"Vector2"]]}; initSearch(searchIndex);