12 lines
181 B
C++
12 lines
181 B
C++
#pragma once
|
|
|
|
struct Spring
|
|
{
|
|
std::weak_ptr<MassPoint> mp1;
|
|
std::weak_ptr<MassPoint> mp2;
|
|
float initialLength;
|
|
|
|
bool isValid() { return !mp1.expired() && !mp2.expired(); }
|
|
};
|
|
|