☰
nannou
0.19.0
In nannou::geom
Modules
cuboid
ellipse
path
point
polygon
quad
range
rect
scalar
tri
vector
vertex
Structs
Cuboid
DVec2
DVec3
DVec4
Ellipse
IVec2
IVec3
IVec4
Padding
Polygon
Quad
Range
Rect
Tri
Vec2
Vec3
Vec4
Enums
Align
Corner
Edge
Traits
Scalar
Vertex
Vertex2d
Vertex3d
Functions
bounding_cuboid
bounding_rect
centroid
dvec2
dvec3
dvec4
ivec2
ivec3
ivec4
pt2
pt3
pt4
vec2
vec3
vec4
Type Aliases
Point2
Point3
Point4
Vector2
Vector3
Vector4
?
Function
nannou
::
geom
::
vec2
source
·
[
−
]
pub fn vec2(x:
f32
, y:
f32
) ->
Vec2
Expand description
Creates a 2-dimensional vector.