Struct rust_sc2::geometry::Point3  [−][src]
Point in 3D game world.
Fields
x: f32y: f32z: f32Implementations
impl Point3[src]
impl Point3[src]pub fn new(x: f32, y: f32, z: f32) -> Self[src]
Constructs new 3D Point with given coordinates.
pub fn offset(self, x: f32, y: f32, z: f32) -> Self[src]
Returns new point with given offset.
pub fn round(self) -> Self[src]
Returns rounded point.
pub fn as_tuple(self) -> (f32, f32, f32)[src]
Returns tuple with point’s coordinates.
pub fn to2(self) -> Point2[src]
Converts 3D Point to 2D Point.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Point3
impl RefUnwindSafe for Point3impl UnwindSafe for Point3
impl UnwindSafe for Point3Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
impl<V, T> VZip<V> for T where
    V: MultiLane<T>,