Type Alias 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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Output = IVec3_

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more