cesium-native 0.66.0
Loading...
Searching...
No Matches
Sphere.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8namespace CesiumGltf {
13struct CESIUMGLTF_API Sphere final : public CesiumUtility::ExtensibleObject {
17 static constexpr const char* TypeName = "Sphere";
18
22 double radius = 0.5;
23
30 int64_t getSizeBytes() const {
31 int64_t accum = 0;
32 accum += int64_t(sizeof(Sphere));
34 int64_t(sizeof(CesiumUtility::ExtensibleObject));
35
36 return accum;
37 }
38};
39} // namespace CesiumGltf
Classes for working with glTF models.
A sphere, centered at the origin in local space with a radius equal in all directions,...
Definition Sphere.h:13
static constexpr const char * TypeName
The original name of this type.
Definition Sphere.h:17
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Sphere.h:30
double radius
The radius of the sphere.
Definition Sphere.h:22
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...