AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
TrackCurveControlPoints.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
20
21namespace agxVehicle
22{
29 {
33 size_t size() const;
34
39 void reserve( size_t capacity );
40
47 void push_back( const agx::Vec3& point, size_t wheelIndex, agx::UInt16 flags );
48
51 };
52
53 inline size_t TrackCurveControlPoints::size() const
54 {
55 return points.size();
56 }
57
58 inline void TrackCurveControlPoints::reserve( size_t capacity )
59 {
60 points.reserve( capacity );
61 wheelIndexFlags.reserve( capacity );
62 }
63
65 size_t wheelIndex,
66 agx::UInt16 flags )
67 {
68 points.push_back( point );
70 TrackCurveEvent::Type::Flag{ flags } ) );
71 }
72}
size_t size() const
Definition: Container.h:134
void push_back(const T &value)
Definition: agx/Vector.h:1362
void reserve(size_t size)
Reserve capacity in the vector.
Definition: agx/Vector.h:1235
This namespace contains classes related to vehicles dynamics.
uint16_t UInt16
Definition: Integer.h:31
Track control points for the generation of the convex hull.
void push_back(const agx::Vec3 &point, size_t wheelIndex, agx::UInt16 flags)
Add point associated to the given wheelIndex with properties flags.
void reserve(size_t capacity)
Reserve capacity of both points and flags.
static agx::UInt32 encode(size_t wheelIndex, Flag flags)
Encodes wheel index with flags into a 32 bit unsigned.