emergent 8.2.2 PosVector3i Class Reference
emergent 8.2.2   Home · Wiki Docs For: PosVector3i · Emergent Help Browser 

PosVector3i Class Reference

positive-only value in 3D coordinate space

See for more info: Wiki Docs For: PosVector3i

 #include <PosVector3i>

defined at: /mnt/ssd/grey/local/include/Emergent/PosVector3i.h :29-45

Inherits From: taVector3i, taVector2i, taBase

Inherited By: PosVector3i*, PosVector3i&, const PosVector3i, PosTDCoord

Index: SubTypes, Members, Methods, Static Members, Static Methods, Expert Members, Expert Methods

Sub Types


SubType Documentation


Regular (preferred) Member and Method Documentation

Members

Member Category: _NoCategory

Methods

Method Category: _NoCategory


Member Documentation

Member Category: _NoCategory

taVector2i::x : int

horizontal

taVector2i::y : int

vertical

taVector3i::z : int

depth


Method Documentation

Method Category: _NoCategory

void taVector3i::Abs ( )

Show Source Code

bool taVector3i::Clip ( taVector3i& max )

clip coordinates within 0,0,0 - max range, true if out of range

Show Source Code

void taVector3i::CopyToMatrixGeom ( MatrixGeom& geom )

Show Source Code

void taVector3i::CopyToMatrixIndex ( MatrixIndex& idx )

Show Source Code

float taVector3i::Dist ( taVector3i& td )

Show Source Code

bool taVector2i::FitN ( int n )

adjust x and y to fit x total elements

Show Source Code

bool taVector3i::FitNinXY ( int n )

adjust x and y to fit x total elements

Show Source Code

void taVector3i::FromMatrix ( taMatrix& mat )

set values from a matrix object (can be any type of matrix object)

Show Source Code

taString taVector3i::GetStr ( )

Show Source Code

TypeDef* PosVector3i::GetTypeDef ( )

Show Source Code

void taVector2i::GetXY ( float& xx, float& yy )

Show Source Code

void taVector3i::GetXYZ ( float& xx, float& yy, float& zz )

Show Source Code

void taVector3i::Invert ( )

Show Source Code

float taVector3i::Mag ( )

Show Source Code

void taVector3i::Max ( taVector3i& td )

Show Source Code

int taVector3i::MaxVal ( )

Show Source Code

void taVector3i::Min ( taVector3i& td )

Show Source Code

int taVector3i::MinVal ( )

Show Source Code

bool taVector3i::OrEq ( taVector3i& td )

Show Source Code

int taVector3i::Product ( )

Show Source Code

void taVector2i::SetFmIndex ( int idx, int x_size )

set x, y values from a 'cell' index in a 2d matrix-like space organized with x as the inner loop and y as the outer loop, with a given x dimension size

Show Source Code

void taVector3i::SetGtEq ( int n )

set each to be greater than or equal to n

Show Source Code

void taVector3i::SetLtEq ( int n )

set each to be less than or equal to n

Show Source Code

void taVector2i::SetXY ( float xx, float yy )

Show Source Code

void taVector3i::SetXYZ ( float xx, float yy, float zz )

Show Source Code

float taVector3i::SqDist ( taVector3i& td )

Show Source Code

int taVector3i::SqMag ( )

Show Source Code

int taVector3i::Sum ( )

Show Source Code

void taVector3i::SumNorm ( )

Show Source Code

void taVector3i::ToMatrix ( taMatrix& mat )

set values to a 1d matrix object (can be any type of matrix object)

Show Source Code

void taVector3i::Wrap ( taVector3i& max )

wrap-around coordinates within 0,0,0 - max range

Show Source Code

bool taVector3i::WrapClip ( bool wrap, taVector3i& max )

wrap-around or clip coordinates within 0,0,0 - max range, true if clipped out of range -- for performance, it is better to use separate code for wrap and clip cases

Show Source Code

bool taVector2i::WrapHalf ( taVector2i& max )

wrap-around coordinates within 0,0 - max range, return true if out of range (more than half way around other side)

Show Source Code

void taVector2i::WrapMinDist ( taVector2i& dst, taVector2i& max, taVector2i& cmp, taVector2i& cmp_half )

in computing the distance between two coords: dst = this-cmp, consider whether the distance is shorter if this is wrapped around as a function of pos_max size (condition on which side of the half-way point of the range for cmp value, cmp_half, for which way to wrap) -- if it is shorter, then update this pos to new extended value (beyond normal range either - or +) and also update the distance value

Show Source Code

bool taVector3i::isZero ( )

Show Source Code

Static Member and Method Documentation

Static Members

Static Methods

Static Method Category: _NoCategory


Static Method Documentation

Static Method Category: _NoCategory

int taVector3i::Absv ( int val )   [static]

Show Source Code

bool taVector2i::ClipOne ( int& c, int max )   [static]

clip one dimension, true if out of range

Show Source Code

int taVector3i::Sgn ( int val )   [static]

Show Source Code

int taVector2i::WrapMax ( int c, int max )   [static]

Show Source Code

void taVector2i::WrapMinDistOne ( int& pos, int& dst, const int pos_max, const int cmp, const int cmp_half )   [static]

in computing the distance between two coord vals: dst = pos-cmp, consider whether the distance is shorter if pos is wrapped around as a function of pos_max size (condition on which side of the half-way point of the range for cmp value, cmp_half, for which way to wrap) -- if it is shorter, then update pos to new extended value (beyond normal range either - or +) and also update the distance value

Show Source Code

void taVector2i::WrapOne ( int& c, int max )   [static]

wrap-around one dimension

Show Source Code

bool taVector2i::WrapOneHalf ( int& c, int max )   [static]

wrap-around one dimension, return true if out of range (more than half way around other side)

Show Source Code

Expert Member and Method Documentation

Expert Members

Expert Methods


Expert Method Documentation


Copyright © 2017Regents of the University of Colorado, Carnegie Mellon University, Princeton University.
emergent 8.2.2