NVIDIA IndeX API nvidia_logo_transpbg.gif Up
isphere.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_ISPHERE_H
8#define NVIDIA_INDEX_ISPHERE_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/dice.h>
12
13#include <nv/index/ishape.h>
14
15namespace nv
16{
17namespace index
18{
19
25class ISphere :
26 public mi::base::Interface_declare<0x9b0af03a,0x177c,0x4127,0x9c,0x47,0x8b,0x5c,0xc8,0x36,0x92,0xaf,
27 nv::index::IObject_space_shape>
28{
29public:
34 virtual mi::math::Vector_struct<mi::Float32, 3> get_center() const = 0;
35
40 virtual void set_center(const mi::math::Vector_struct<mi::Float32, 3>& center) = 0;
41
46 virtual mi::Float32 get_radius() const = 0;
47
52 virtual void set_radius(mi::Float32 radius) = 0;
53};
54
55}} // namespace index / nv
56
57#endif // NVIDIA_INDEX_ISPHERE_H
A simple sphere.
Definition: isphere.h:28
virtual void set_center(const mi::math::Vector_struct< mi::Float32, 3 > &center)=0
Sets the position of the center of the sphere.
virtual mi::math::Vector_struct< mi::Float32, 3 > get_center() const =0
Returns the position of the center of the sphere.
virtual mi::Float32 get_radius() const =0
Sets the radius of the sphere.
virtual void set_radius(mi::Float32 radius)=0
Returns the radius of the sphere.
Base class declaring the functionality of higher-level shapes.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349