Skip to main content

PointD

Type Alias PointD 

Source
pub type PointD = PD;
Expand description

Double-precision point (PointD); same layout as cxx PD.

双精度点,布局与 cxx PD 一致。

Aliased Type§

#[repr(C)]
pub struct PointD { pub x: f64, pub y: f64, }

Fields§

§x: f64§y: f64

Implementations§

Source§

impl PointD

Source

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

Creates a point. / 构造点。