gem.routesAndNavigation. CarProfile

new CarProfile(objOrFuel, mass, maxSpeed)

A class that represents a profile for a car, including its fuel type, mass, and maximum speed.

Parameters:
NameTypeDescription
objOrFuelModule.CarProfile | gem.routesAndNavigation.EFuelType

If the first argument is an instance of Module.CarProfile, it will be used to initialize the object. Otherwise, the argument is used as the fuel type to initialize a new Module.CarProfile object.

massnumber

The mass of the car.

maxSpeednumber

The maximum speed of the car.

Properties
NameTypeDescription
fuelgem.routesAndNavigation.EFuelType

The fuel type of the car.

massnumber

The mass of the car.

maxSpeednumber

The maximum speed of the car.

Example
```javascript
let carProfile = new gem.routesAndNavigation.CarProfile(gem.routesAndNavigation.EFuelType.FT_Petrol, 1500, 200);
console.log(carProfile.fuel); // Outputs: FT_Petrol
console.log(carProfile.mass); // Outputs: 1500
console.log(carProfile.maxSpeed); // Outputs: 200
```

Extends

Methods

delete()

calls emscripten object destructor

Inherited From

getRawPointer() → {object}

Returns emscripten object

Returns:
Type: 
object

isDeleted() → {boolean}

Check if emscripten object has been deleted

Inherited From
Returns:
Type: 
boolean