Lines Matching refs:s
66 sphere *s; in newsphere() local
68 s = (sphere *)rt_getmem(sizeof(sphere)); in newsphere()
69 memset(s, 0, sizeof(sphere)); in newsphere()
70 s->methods = &sphere_methods; in newsphere()
72 s->tex = (texture *)tex; in newsphere()
73 s->ctr = ctr; in newsphere()
74 s->rad = rad; in newsphere()
76 return (object *)s; in newsphere()
80 sphere *s = (sphere *)obj; in sphere_bbox() local
82 min->x = s->ctr.x - s->rad; in sphere_bbox()
83 min->y = s->ctr.y - s->rad; in sphere_bbox()
84 min->z = s->ctr.z - s->rad; in sphere_bbox()
85 max->x = s->ctr.x + s->rad; in sphere_bbox()
86 max->y = s->ctr.y + s->rad; in sphere_bbox()
87 max->z = s->ctr.z + s->rad; in sphere_bbox()