cesium-native 0.66.0
Loading...
Searching...
No Matches
Capsule.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 {
15struct CESIUMGLTF_API Capsule final : public CesiumUtility::ExtensibleObject {
19 static constexpr const char* TypeName = "Capsule";
20
25 double height = 1;
26
31 double radiusBottom = 0.5;
32
37 double radiusTop = 0.5;
38
45 int64_t getSizeBytes() const {
46 int64_t accum = 0;
47 accum += int64_t(sizeof(Capsule));
49 int64_t(sizeof(CesiumUtility::ExtensibleObject));
50
51 return accum;
52 }
53};
54} // namespace CesiumGltf
Classes for working with glTF models.
A capsule, centered at the origin in local space with potentially different radii at each end,...
Definition Capsule.h:15
static constexpr const char * TypeName
The original name of this type.
Definition Capsule.h:19
double radiusTop
The radius of the sphere located at the top of the capsule (i.e. the sphere at the half-height along ...
Definition Capsule.h:37
double radiusBottom
The radius of the sphere located at the bottom of the capsule (i.e. the sphere at the half-height alo...
Definition Capsule.h:31
double height
The distance between the centers of the two capping spheres of capsule, also known as the mid-height.
Definition Capsule.h:25
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Capsule.h:45
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 ...