Skip to main content

b2Vec2

b2Vec2

Box2D.Common

Type: Struct

Constructors

b2Vec2(float, float)

Methods

Equals(b2Vec2)

System.Boolean Equals(b2Vec2)(Box2D.Common.b2Vec2 o)
Parameters:
o (Box2D.Common.b2Vec2)
Returns:
System.Boolean

Equals(object)

System.Boolean Equals(object)(System.Object obj)
Parameters:
obj (System.Object)
Returns:
System.Boolean
Example

GetHashCode()

System.Int32 GetHashCode()()
Returns:
System.Int32
Example

IsValid()

System.Boolean IsValid()()
Returns:
System.Boolean
Example

NegUnitCross()

Box2D.Common.b2Vec2 NegUnitCross()()

The mathematical equivalent of 1 cross with this

Returns:
Box2D.Common.b2Vec2
Example

Normalize()

System.Single Normalize()()
Returns:
System.Single
Example

Set(float, float)

Set(float, float)(System.Single x_, System.Single y_)
Parameters:
x_ (System.Single)
y_ (System.Single)
Example

SetZero()

SetZero()()
Example

Skew()

Box2D.Common.b2Vec2 Skew()()
Returns:
Box2D.Common.b2Vec2
Example

ToString()

System.String ToString()()
Returns:
System.String
Example

UnitCross()

Box2D.Common.b2Vec2 UnitCross()()

The mathematical equivalent of this cross with 1.0f

Returns:
Box2D.Common.b2Vec2
Example

Propertys

Length(System.Single)
LengthSquared(System.Single)

Fields

Zero(Box2D.Common.b2Vec2)
x(System.Single)
y(System.Single)

Operators

operator +(b2Vec2, b2Vec2)

operator /(b2Vec2, float)

operator ==(b2Vec2, b2Vec2)

operator !=(b2Vec2, b2Vec2)

operator *(b2Vec2, float)

operator *(float, b2Vec2)

operator -(b2Vec2, b2Vec2)

operator -(b2Vec2)