MassData
Declaration
public struct tainicom.Aether.Physics2D.Collision.Shapes.MassData
This holds the mass data computed for a shape.
Implements: System.IEquatable
Properties
Area
The area of the shape
float Area { get }
Centroid
The position of the shape's centroid relative to the shape's origin.
Vector2 Centroid { get }
Inertia
The rotational inertia of the shape about the local origin.
float Inertia { get }
Mass
The mass of the shape, usually in kilograms.
float Mass { get }
Methods
Equals
bool Equals(MassData other)
Parameters:
| Name | Type | Description |
|---|---|---|
other |
tainicom.Aether.Physics2D.Collision.Shapes.MassData |
Equals override
bool Equals(object obj)
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
System.Object |
GetHashCode override
int GetHashCode()
Operators
op_Equality static
The equal operator
bool op_Equality(MassData left, MassData right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
tainicom.Aether.Physics2D.Collision.Shapes.MassData |
|
right |
tainicom.Aether.Physics2D.Collision.Shapes.MassData |
op_Inequality static
The not equal operator
bool op_Inequality(MassData left, MassData right)
Parameters:
| Name | Type | Description |
|---|---|---|
left |
tainicom.Aether.Physics2D.Collision.Shapes.MassData |
|
right |
tainicom.Aether.Physics2D.Collision.Shapes.MassData |