C# Class SimpleSoccer.Net.Vector2D

Mostrar archivo Open project: soshimozi/SimpleSoccer.Net Class Usage Examples

Protected Properties

Property Type Description
x double
y double

Public Methods

Method Description
Distance ( Vector2D v2 ) : double
DistanceSq ( Vector2D v2 ) : double
GetDistance ( Vector2D vector ) : double
GetDistanceSquared ( Vector2D vector ) : double
GetDotProduct ( Vector2D v2 ) : double
GetPerp ( ) : Vector2D
GetReverse ( ) : Vector2D
GetSign ( Vector2D vector ) : int
InsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
InsideRegion ( Vector2D p, int left, int top, int right, int bottom ) : bool
Normalize ( ) : void
NotInsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
Reflect ( Vector2D normal ) : void
Sign ( Vector2D v2 ) : int
ToPoint ( ) : PointF
Truncate ( double max ) : void
Vec2DDistance ( Vector2D v1, Vector2D v2 ) : double
Vec2DDistanceSq ( Vector2D v1, Vector2D v2 ) : double
Vec2DLength ( Vector2D v ) : double
Vec2DLengthSq ( Vector2D v ) : double
Vec2DNormalize ( Vector2D v ) : Vector2D
Vector2D ( ) : System
Vector2D ( Vector2D v2 ) : System
Vector2D ( double a, double b ) : System
WrapAround ( Vector2D pos, int MaxX, int MaxY ) : void
Zero ( ) : void
isSecondInFOVOfFirst ( Vector2D posFirst, Vector2D facingFirst, Vector2D posSecond, double fov ) : bool
operator ( ) : Vector2D

Method Details

Distance() public method

public Distance ( Vector2D v2 ) : double
v2 Vector2D
return double

DistanceSq() public method

public DistanceSq ( Vector2D v2 ) : double
v2 Vector2D
return double

GetDistance() public method

public GetDistance ( Vector2D vector ) : double
vector Vector2D
return double

GetDistanceSquared() public method

public GetDistanceSquared ( Vector2D vector ) : double
vector Vector2D
return double

GetDotProduct() public method

public GetDotProduct ( Vector2D v2 ) : double
v2 Vector2D
return double

GetPerp() public method

public GetPerp ( ) : Vector2D
return Vector2D

GetReverse() public method

public GetReverse ( ) : Vector2D
return Vector2D

GetSign() public method

public GetSign ( Vector2D vector ) : int
vector Vector2D
return int

InsideRegion() public static method

public static InsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
p Vector2D
top_left Vector2D
bot_rgt Vector2D
return bool

InsideRegion() public static method

public static InsideRegion ( Vector2D p, int left, int top, int right, int bottom ) : bool
p Vector2D
left int
top int
right int
bottom int
return bool

Normalize() public method

public Normalize ( ) : void
return void

NotInsideRegion() public static method

public static NotInsideRegion ( Vector2D p, Vector2D top_left, Vector2D bot_rgt ) : bool
p Vector2D
top_left Vector2D
bot_rgt Vector2D
return bool

Reflect() public method

public Reflect ( Vector2D normal ) : void
normal Vector2D
return void

Sign() public method

public Sign ( Vector2D v2 ) : int
v2 Vector2D
return int

ToPoint() public method

public ToPoint ( ) : PointF
return System.Drawing.PointF

Truncate() public method

public Truncate ( double max ) : void
max double
return void

Vec2DDistance() public static method

public static Vec2DDistance ( Vector2D v1, Vector2D v2 ) : double
v1 Vector2D
v2 Vector2D
return double

Vec2DDistanceSq() public static method

public static Vec2DDistanceSq ( Vector2D v1, Vector2D v2 ) : double
v1 Vector2D
v2 Vector2D
return double

Vec2DLength() public static method

public static Vec2DLength ( Vector2D v ) : double
v Vector2D
return double

Vec2DLengthSq() public static method

public static Vec2DLengthSq ( Vector2D v ) : double
v Vector2D
return double

Vec2DNormalize() public static method

public static Vec2DNormalize ( Vector2D v ) : Vector2D
v Vector2D
return Vector2D

Vector2D() public method

public Vector2D ( ) : System
return System

Vector2D() public method

public Vector2D ( Vector2D v2 ) : System
v2 Vector2D
return System

Vector2D() public method

public Vector2D ( double a, double b ) : System
a double
b double
return System

WrapAround() public static method

public static WrapAround ( Vector2D pos, int MaxX, int MaxY ) : void
pos Vector2D
MaxX int
MaxY int
return void

Zero() public method

public Zero ( ) : void
return void

isSecondInFOVOfFirst() public static method

public static isSecondInFOVOfFirst ( Vector2D posFirst, Vector2D facingFirst, Vector2D posSecond, double fov ) : bool
posFirst Vector2D
facingFirst Vector2D
posSecond Vector2D
fov double
return bool

operator() public static method

public static operator ( ) : Vector2D
return Vector2D

Property Details

x protected_oe property

protected double x
return double

y protected_oe property

protected double y
return double