C# Class Project290.Screens.Shared.HypercubeNode

Used for representing a node in a hypercube.
Mostra file Open project: scastle/Solitude

Public Properties

Property Type Description
Position Vector2

Public Methods

Method Description
HypercubeNode ( Vector2 position, Vector2 velocity, Rectangle bouncingBox ) : System

Initializes a new instance of the HypercubeNode class.

Set ( float x, float y ) : void

Sets the rectangle centers to the specified x, y.

Update ( ) : void

Updates this instance.

Method Details

HypercubeNode() public method

Initializes a new instance of the HypercubeNode class.
public HypercubeNode ( Vector2 position, Vector2 velocity, Rectangle bouncingBox ) : System
position Vector2 The position.
velocity Vector2 The velocity.
bouncingBox Microsoft.Xna.Framework.Rectangle The bouncing box.
return System

Set() public method

Sets the rectangle centers to the specified x, y.
public Set ( float x, float y ) : void
x float The x.
y float The y.
return void

Update() public method

Updates this instance.
public Update ( ) : void
return void

Property Details

Position public_oe property

Gets the position of the node.
public Vector2 Position
return Vector2