Skip to main content

Point64

Type Alias Point64 

Source
pub type Point64 = P64;
Expand description

Single point on the integer Clipper2 grid (Point64); same layout as cxx P64.

Clipper2 整数网格上的点,布局与 cxx P64 一致。

Aliased Type§

#[repr(C)]
pub struct Point64 { pub x: i64, pub y: i64, }

Fields§

§x: i64

X in user integer units. / X。

§y: i64

Y in user integer units. / Y。

Implementations§

Source§

impl Point64

Source

pub fn new(x: i64, y: i64) -> Self

Creates a point from coordinates. / 由坐标构造点。