pub fn pn_pair_from_normal(&self, normal: Vec3)
		-> (Vec3, Vec3)
	{
		let mut pvertex = self.center;
		let mut nvertex = self.center;

		if normal.x >= 0.0 {
			pvertex.x += self.half_len;
			nvertex.x -= self.half_len;
		} else {
			nvertex.x += self.half_len;
			pvertex.x -= self.half_len;
		}

		if normal.y >= 0.0 {
			pvertex.y += self.half_len;
			nvertex.y -= self.half_len;
		} else {
			nvertex.y += self.half_len;
			pvertex.y -= self.half_len;
		}

		if normal.z >= 0.0 {
			pvertex.z += self.half_len;
			nvertex.z -= self.half_len;
		} else {
			nvertex.z += self.half_len;
			pvertex.z -= self.half_len;
		}

		(nvertex, pvertex)
	}
/// Get a positive and negative pair of opposite points that are the
/// bounds of the BBox, based around a normal.
Get a positive and negative pair of opposite points that are the
bounds of the BBox, based around a normal.
Get a positive and negative pair of opposite points that are the bounds of the BBox based around a normal .
pub fn pn_pair_from_normal(&self, normal: Vec3)
		-> (Vec3, Vec3)
	{
		let mut pvertex = self.center;
		let mut nvertex = self.center;
		if normal.x >= 0.0 {
			pvertex.x += self.half_len;
			nvertex.x -= self.half_len;
		} else {
			nvertex.x += self.half_len;
			pvertex.x -= self.half_len;
		}
		if normal.y >= 0.0 {
			pvertex.y += self.half_len;
			nvertex.y -= self.half_len;
		} else {
			nvertex.y += self.half_len;
			pvertex.y -= self.half_len;
		}
		if normal.z >= 0.0 {
			pvertex.z += self.half_len;
			nvertex.z -= self.half_len;
		} else {
			nvertex.z += self.half_len;
			pvertex.z -= self.half_len;
		}
		(nvertex, pvertex)
	}
pub fn pn_pair_from_normal ( & self , normal : Vec3 ) -> ( Vec3 , Vec3 ) { let mut pvertex = self . center ; let mut nvertex = self . center ; if normal . x >= 0.0 { pvertex . x += self . half_len ; nvertex . x -= self . half_len ; } else { nvertex . x += self . half_len ; pvertex . x -= self . half_len ; } if normal . y >= 0.0 { pvertex . y += self . half_len ; nvertex . y -= self . half_len ; } else { nvertex . y += self . half_len ; pvertex . y -= self . half_len ; } if normal . z >= 0.0 { pvertex . z += self . half_len ; nvertex . z -= self . half_len ; } else { nvertex . z += self . half_len ; pvertex . z -= self . half_len ; } ( nvertex , pvertex ) }
Get a positive and negative pair of opposite points that are the
bounds of the BBox, based around a normal.
Get a positive and negative pair of opposite points that are the bounds of the BBox based around a normal .
&self
normal
Vec3