MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / as_rectangle

Method as_rectangle

src/graphics/rectangle.rs:130–137  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

128
129impl IRectangle {
130 pub fn as_rectangle(&self) -> Rectangle {
131 Rectangle {
132 x: self.x as f32,
133 y: self.y as f32,
134 width: self.width as f32,
135 height: self.height as f32,
136 }
137 }
138}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected