[][src]Type Definition pbrt::core::geometry::Point3f

type Point3f = Point3<Float>;

2D point type with Float members.

Methods

impl Point3f[src]

pub fn floor(&self) -> Point3f[src]

Returns the floor of each value as a new point.

Examples

use pbrt::core::geometry::Point3f;

let p: Point3f = [1.5, 2.5, 3.5].into();
assert_eq!(p.floor(), [1., 2., 3.].into());

pub fn ceil(&self) -> Point3f[src]

Returns the ceiling of each value as a new point.

Examples

use pbrt::core::geometry::Point3f;

let p: Point3f = [1.5, 2.5, 3.5].into();
assert_eq!(p.ceil(), [2., 3., 4.].into());