Table of Contents

Struct MassData

Namespace
Alis.Core.Physic.Collision.Shapes
Assembly
Alis.dll

This holds the mass data computed for a shape.

public struct MassData : IEquatable<MassData>

Implements

Inherited Members

Properties

Area

The area of the shape

public float Area { readonly get; internal set; }

Property Value

float

Centroid

The position of the shape's centroid relative to the shape's origin.

public Vector2 Centroid { readonly get; internal set; }

Property Value

Vector2

Inertia

The rotational inertia of the shape about the local origin.

public float Inertia { readonly get; internal set; }

Property Value

float

Mass

The mass of the shape, usually in kilograms.

public float Mass { readonly get; internal set; }

Property Value

float

Methods

Equals(MassData)

Describes whether this instance equals

public bool Equals(MassData other)

Parameters

other MassData

The other

Returns

bool

The bool

Equals(object)

Describes whether this instance equals

public override bool Equals(object obj)

Parameters

obj object

The obj

Returns

bool

The bool

GetHashCode()

Gets the hash code

public override int GetHashCode()

Returns

int

The int

Operators

operator ==(MassData, MassData)

The equal operator

public static bool operator ==(MassData left, MassData right)

Parameters

left MassData
right MassData

Returns

bool

operator !=(MassData, MassData)

The not equal operator

public static bool operator !=(MassData left, MassData right)

Parameters

left MassData
right MassData

Returns

bool