It's verification time!!!
#13
Next up is come code from the POV-Ray port:
Code: (Select All)
  /' Get minimum/maximum of two values. '/
  proc SYSTEM_BUS_T.POV_min(x as DBL, y as DBL) as DBL
return (iif(((x)>(y)),(y),(x)))
  end proc

  proc SYSTEM_BUS_T.POV_max(x as DBL, y as DBL) as DBL
    return (iif(((x)<(y)),(y),(x)))
  end proc

  /' Get minimum/maximum of three values. '/
  proc SYSTEM_BUS_T.POV_min3(x as DBL, y as DBL, z as DBL) as DBL
    return iif(x < y , iif(x < z , x , z) , iif(y < z , y , z))
  end proc
 
  proc SYSTEM_BUS_T.POV_max3(x as DBL, y as DBL, z as DBL) as DBL
    return iif(x > y , iif(x > z , x , z) , iif(y > z , y , z))
  end proc
 
  /' Absolute value of the long integer x. '/
  proc SYSTEM_BUS_T.POV_labs(x as DBL) as long
    return iif(((x)<0),-(x),(x))
  end proc

  /' Absolute value of the double x. '/
  proc SYSTEM_BUS_T.POV_fabs(x as DBL)  as DBL
    return iif((x) < 0.0 , -(x) , (x))
  end proc
 
  /' Stuff for bounding boxes. '/
  def SYSTEM_BUS_T.POV_Assign_BBox_Vect(d as DBL ptr, s as DBL ptr)
    dim as SYSTEM_TYPE x = fun_pull() ' x = computer.cpU_mos6510->pull()
    dim as SYSTEM_TYPE y = fun_pull() ' y = computer.cpU_mos6510->pull()
    dim as SYSTEM_TYPE z = fun_pull() ' z = computer.cpU_mos6510->pull()
    d[x] = s[x]: d[y] = s[y]: d[z] = s[z]
  end def

  def SYSTEM_BUS_T.POV_Make_BBox(BBox() as _BBOX,llx as _BBOX_VAL,lly as _BBOX_VAL,llz as _BBOX_VAL, _
                                                lex as _BBOX_VAL,ley as _BBOX_VAL,lez as _BBOX_VAL)
    dim as SYSTEM_TYPE x = fun_pull() ' x = computer.cpU_mos6510->pull()
    dim as SYSTEM_TYPE y = fun_pull() ' y = computer.cpU_mos6510->pull()
    dim as SYSTEM_TYPE z = fun_pull() ' z = computer.cpU_mos6510->pull()
    BBox(x).Lower_Left  = (llx)
    BBox(y).Lower_Left  = (lly)
    BBox(z).Lower_Left  = (llz)
    BBox(x).Lengths      = (lex)
    BBox(y).Lengths      = (ley)
    BBox(z).Lengths      = (lez)
  end def
Reply


Messages In This Thread
It's verification time!!! - by fatman2021 - 07-08-2022, 12:16 AM
RE: It's verification time!!! - by fatman2021 - 07-08-2022, 12:07 PM
RE: It's verification time!!! - by bplus - 07-08-2022, 01:00 PM
RE: It's verification time!!! - by dcromley - 07-08-2022, 03:18 PM
RE: It's verification time!!! - by bplus - 07-08-2022, 04:17 PM
RE: It's verification time!!! - by dcromley - 07-08-2022, 05:41 PM
RE: It's verification time!!! - by bplus - 07-08-2022, 05:47 PM
RE: It's verification time!!! - by Kernelpanic - 07-08-2022, 09:50 PM
RE: It's verification time!!! - by fatman2021 - 07-09-2022, 12:20 AM
RE: It's verification time!!! - by fatman2021 - 07-09-2022, 01:30 AM
RE: It's verification time!!! - by fatman2021 - 07-09-2022, 06:01 PM
RE: It's verification time!!! - by fatman2021 - 07-10-2022, 10:13 PM
RE: It's verification time!!! - by fatman2021 - 07-11-2022, 06:26 PM
RE: It's verification time!!! - by fatman2021 - 07-13-2022, 04:50 PM
RE: It's verification time!!! - by fatman2021 - 07-15-2022, 01:43 AM
RE: It's verification time!!! - by fatman2021 - 07-15-2022, 11:30 PM
RE: It's verification time!!! - by fatman2021 - 07-17-2022, 12:56 AM
RE: It's verification time!!! - by fatman2021 - 07-19-2022, 01:14 AM
RE: It's verification time!!! - by fatman2021 - 07-20-2022, 09:52 PM
RE: It's verification time!!! - by dbox - 07-20-2022, 10:07 PM
RE: It's verification time!!! - by fatman2021 - 07-20-2022, 11:24 PM
RE: It's verification time!!! - by vince - 07-21-2022, 01:36 AM
RE: It's verification time!!! - by fatman2021 - 07-21-2022, 06:46 PM
RE: It's verification time!!! - by vince - 07-28-2022, 07:37 AM
RE: It's verification time!!! - by fatman2021 - 07-28-2022, 03:19 PM
RE: It's verification time!!! - by fatman2021 - 07-25-2022, 02:47 AM
RE: It's verification time!!! - by fatman2021 - 07-27-2022, 09:03 PM
RE: It's verification time!!! - by mnrvovrfc - 07-27-2022, 10:08 PM
RE: It's verification time!!! - by fatman2021 - 07-27-2022, 10:50 PM
RE: It's verification time!!! - by fatman2021 - 07-28-2022, 04:04 PM
RE: It's verification time!!! - by fatman2021 - 08-10-2022, 01:13 PM
RE: It's verification time!!! - by fatman2021 - 08-15-2022, 04:50 PM



Users browsing this thread: 5 Guest(s)