INNER CODE UNIT · Rust
to_pivot
elringus/sprite-dicing · crates/abi/src/lib.rs:177
fn to_pivot(c: &sd_pivot) -> Pivot {
Pivot::new(c.x, c.y)
}
fn to_c_pivot(pivot: &Pivot) -> sd_pivot {
sd_pivot {
x: pivot.x,
y: pivot.y,
}
}
fn to_c_vertex(vertex: &sprite_dicing::Vertex) -> sd_vertex {
sd_vertex {
x: vertex.x,
y: vertex.y,
}
}