Type Alias classicube_sys::IVec3

source ·
pub type IVec3 = IVec3_;

Aliased Type§

struct IVec3 {
    pub x: i32,
    pub y: i32,
    pub z: i32,
}

Fields§

§x: i32§y: i32§z: i32

Implementations§

source§

impl IVec3

source

pub const fn new(x: c_int, y: c_int, z: c_int) -> Self

source

pub const fn zero() -> Self

source

pub fn set(&mut self, x: c_int, y: c_int, z: c_int)

source

pub fn is_zero(&self) -> bool

source

pub const fn max_value() -> Self

source

pub fn to_vec3(&self) -> Vec3

source

pub fn min(&self, b: IVec3) -> Self

source

pub fn max(&self, b: IVec3) -> Self

Trait Implementations§

source§

impl Add<i32> for IVec3

§

type Output = IVec3_

The resulting type after applying the + operator.
source§

fn add(self, other: c_int) -> Self

Performs the + operation. Read more
source§

impl Add for IVec3

§

type Output = IVec3_

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
source§

impl Div<i32> for IVec3

§

type Output = IVec3_

The resulting type after applying the / operator.
source§

fn div(self, other: c_int) -> Self

Performs the / operation. Read more
source§

impl Div for IVec3

§

type Output = IVec3_

The resulting type after applying the / operator.
source§

fn div(self, other: Self) -> Self

Performs the / operation. Read more
source§

impl Mul<i32> for IVec3

§

type Output = IVec3_

The resulting type after applying the * operator.
source§

fn mul(self, other: c_int) -> Self

Performs the * operation. Read more
source§

impl Mul for IVec3

§

type Output = IVec3_

The resulting type after applying the * operator.
source§

fn mul(self, other: Self) -> Self

Performs the * operation. Read more
source§

impl Neg for IVec3

§

type Output = IVec3_

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl Sub<i32> for IVec3

§

type Output = IVec3_

The resulting type after applying the - operator.
source§

fn sub(self, other: c_int) -> Self

Performs the - operation. Read more
source§

impl Sub for IVec3

§

type Output = IVec3_

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self

Performs the - operation. Read more