diff --git a/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html b/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html index bbfb9d3b5c..0cd44a6a30 100644 --- a/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html +++ b/rustdoc/game/pregame/built_info/constant.BUILT_TIME_UTC.html @@ -1,3 +1,3 @@ game::pregame::built_info::BUILT_TIME_UTC - Rust

[][src]Constant game::pregame::built_info::BUILT_TIME_UTC

pub const BUILT_TIME_UTC: &str = "Fri, 23 Oct 2020 17:55:25 +0000";

The built-time in RFC2822, UTC

+ Change settings

[][src]Constant game::pregame::built_info::BUILT_TIME_UTC

pub const BUILT_TIME_UTC: &str = "Fri, 23 Oct 2020 17:56:42 +0000";

The built-time in RFC2822, UTC

\ No newline at end of file diff --git a/rustdoc/geom/polygon/struct.Polygon.html b/rustdoc/geom/polygon/struct.Polygon.html index fe740be7dc..3a54b32d4f 100644 --- a/rustdoc/geom/polygon/struct.Polygon.html +++ b/rustdoc/geom/polygon/struct.Polygon.html @@ -1,5 +1,5 @@ geom::polygon::Polygon - Rust

[][src]Struct geom::polygon::Polygon

pub struct Polygon {
+                Change settings

[][src]Struct geom::polygon::Polygon

pub struct Polygon {
     points: Vec<Pt2D>,
     indices: Vec<u16>,
     rings: Option<Vec<Ring>>,
@@ -8,24 +8,24 @@
 
rings: Option<Vec<Ring>>

If the polygon has holes, explicitly store all the rings (the one outer and all of the inner) so they can later be used to generate outlines and such. If the polygon has no holes, then this will just be None, since the points form a ring.

-

Implementations

impl Polygon[src]

pub fn buggy_new(orig_pts: Vec<Pt2D>) -> Polygon[src]

pub fn with_holes(outer: Ring, inner: Vec<Ring>) -> Polygon[src]

pub fn from_geojson(raw: &Vec<Vec<Vec<f64>>>) -> Polygon[src]

pub fn precomputed(points: Vec<Pt2D>, indices: Vec<usize>) -> Polygon[src]

pub fn from_triangle(tri: &Triangle) -> Polygon[src]

pub fn triangles(&self) -> Vec<Triangle>[src]

pub fn raw_for_rendering(&self) -> (&Vec<Pt2D>, &Vec<u16>)[src]

pub fn contains_pt(&self, pt: Pt2D) -> bool[src]

pub fn get_bounds(&self) -> Bounds[src]

fn transform<F: Fn(&Pt2D) -> Pt2D>(&self, f: F) -> Polygon[src]

pub fn translate(&self, dx: f64, dy: f64) -> Polygon[src]

pub fn scale(&self, factor: f64) -> Polygon[src]

pub fn rotate(&self, angle: Angle) -> Polygon[src]

pub fn rotate_around(&self, angle: Angle, pivot: Pt2D) -> Polygon[src]

pub fn points(&self) -> &Vec<Pt2D>[src]

The order of these points depends on the constructor! The first and last point may or may +

Implementations

impl Polygon[src]

pub fn buggy_new(orig_pts: Vec<Pt2D>) -> Polygon[src]

pub fn with_holes(outer: Ring, inner: Vec<Ring>) -> Polygon[src]

pub fn from_geojson(raw: &Vec<Vec<Vec<f64>>>) -> Polygon[src]

pub fn precomputed(points: Vec<Pt2D>, indices: Vec<usize>) -> Polygon[src]

pub fn from_triangle(tri: &Triangle) -> Polygon[src]

pub fn triangles(&self) -> Vec<Triangle>[src]

pub fn raw_for_rendering(&self) -> (&Vec<Pt2D>, &Vec<u16>)[src]

pub fn contains_pt(&self, pt: Pt2D) -> bool[src]

pub fn get_bounds(&self) -> Bounds[src]

fn transform<F: Fn(&Pt2D) -> Pt2D>(&self, f: F) -> Polygon[src]

pub fn translate(&self, dx: f64, dy: f64) -> Polygon[src]

pub fn scale(&self, factor: f64) -> Polygon[src]

pub fn rotate(&self, angle: Angle) -> Polygon[src]

pub fn rotate_around(&self, angle: Angle, pivot: Pt2D) -> Polygon[src]

pub fn points(&self) -> &Vec<Pt2D>[src]

The order of these points depends on the constructor! The first and last point may or may not match. Polygons constructed from PolyLines will have a very weird order.

-

pub fn into_points(self) -> Vec<Pt2D>[src]

pub fn into_ring(self) -> Ring[src]

pub fn center(&self) -> Pt2D[src]

pub fn rectangle(width: f64, height: f64) -> Polygon[src]

Top-left at the origin. Doesn't take Distance, because this is usually pixels, actually.

-

pub fn rectangle_centered(
    center: Pt2D,
    width: Distance,
    height: Distance
) -> Polygon
[src]

pub fn rectangle_two_corners(pt1: Pt2D, pt2: Pt2D) -> Option<Polygon>[src]

pub fn rounded_rectangle(w: f64, h: f64, r: Option<f64>) -> Polygon[src]

Top-left at the origin. Doesn't take Distance, because this is usually pixels, actually. +

pub fn into_points(self) -> Vec<Pt2D>[src]

pub fn into_ring(self) -> Ring[src]

pub fn center(&self) -> Pt2D[src]

pub fn rectangle(width: f64, height: f64) -> Polygon[src]

Top-left at the origin. Doesn't take Distance, because this is usually pixels, actually.

+

pub fn rectangle_centered(
    center: Pt2D,
    width: Distance,
    height: Distance
) -> Polygon
[src]

pub fn rectangle_two_corners(pt1: Pt2D, pt2: Pt2D) -> Option<Polygon>[src]

pub fn rounded_rectangle(w: f64, h: f64, r: Option<f64>) -> Polygon[src]

Top-left at the origin. Doesn't take Distance, because this is usually pixels, actually. If radius is None, be as round as possible

-

pub fn union(self, other: Polygon) -> Polygon[src]

pub fn union_all(list: Vec<Polygon>) -> Polygon[src]

pub fn intersection(&self, other: &Polygon) -> Vec<Polygon>[src]

pub fn convex_hull(list: Vec<Polygon>) -> Polygon[src]

pub fn polylabel(&self) -> Pt2D[src]

pub fn to_outline(&self, thickness: Distance) -> Result<Polygon, String>[src]

Creates the outline around the polygon, with the thickness half straddling the polygon and +

pub fn union(self, other: Polygon) -> Polygon[src]

pub fn union_all(list: Vec<Polygon>) -> Polygon[src]

pub fn intersection(&self, other: &Polygon) -> Vec<Polygon>[src]

pub fn convex_hull(list: Vec<Polygon>) -> Polygon[src]

pub fn polylabel(&self) -> Pt2D[src]

pub fn to_outline(&self, thickness: Distance) -> Result<Polygon, String>[src]

Creates the outline around the polygon, with the thickness half straddling the polygon and half of it just outside. Only works for polygons that're formed from rings. Those made from PolyLines won't work, for example.

pub fn strip_rings(&self) -> Polygon[src]

Remove the internal rings used for to_outline. This is fine to do if the polygon is being added to some larger piece of geometry that won't need an outline.

pub fn area(&self) -> f64[src]

Usually m^2, unless the polygon is in screen-space

pub fn clip_polyline(&self, input: &PolyLine) -> Option<Vec<Pt2D>>[src]

Doesn't handle multiple crossings in and out.

-

pub fn clip_ring(&self, input: &Ring) -> Option<Vec<Pt2D>>[src]

Trait Implementations

impl Clone for Polygon[src]

pub fn clip_ring(&self, input: &Ring) -> Option<Vec<Pt2D>>[src]

Trait Implementations

impl Clone for Polygon[src]

impl Debug for Polygon[src]

impl<'de> Deserialize<'de> for Polygon[src]

impl Debug for Polygon[src]

impl<'de> Deserialize<'de> for Polygon[src]

impl Display for Polygon[src]

impl Serialize for Polygon[src]

impl Serialize for Polygon[src]

Auto Trait Implementations

impl RefUnwindSafe for Polygon

impl Send for Polygon

impl Sync for Polygon

impl Unpin for Polygon

impl UnwindSafe for Polygon

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]