UncheckedValue v.s CheckedValue

The engine.
Post Reply
alamy
Posts: 8
Joined: Fri Sep 26, 2008 4:39 pm

UncheckedValue v.s CheckedValue

Post by alamy »

Hi,

I'm curious what's the difference DSL_sysCoordinates::UncheckedValue() and DSL_sysCoordinates::CheckedValue() ?

I did a little testing, and it seems that they have the same effects? Just curious if there's any special cases when using one is better (more correct) than the other one?

Thanks.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: UncheckedValue v.s CheckedValue

Post by shooltz[BayesFusion] »

alamy wrote:I'm curious what's the difference DSL_sysCoordinates::UncheckedValue() and DSL_sysCoordinates::CheckedValue() ?
There's no difference. DSL_sysCoordinates is more or less legacy code :) You can obtain the same functionality (converting the vector of ints representing the coords in multi-dimensional matrix to integer index) with DSL_Dmatrix::CoordinatesToIndex or DSL_Dmatrix::NextCoordinates.
Post Reply