C# Class NewTOAPIA.Graphics.Vector2D

Exibir arquivo Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
x double

Public Methods

Method Description
Cross ( Vector2D B ) : double
Dot ( Vector2D B ) : double
Equals ( System obj ) : bool
Equals ( Vector2D OtherVector, double ErrorValue ) : bool
GetAngle0To2PI ( ) : double
GetDeltaAngle ( Vector2D A ) : double
GetDeltaAngle ( double StartAngle, double EndAngle ) : double
GetDistanceBetween ( Vector2D A, Vector2D B ) : double
GetDistanceBetweenSquared ( Vector2D A, Vector2D B ) : double
GetHashCode ( ) : int
GetLength ( ) : double
GetLengthSquared ( ) : double
GetPerpendicular ( ) : Vector2D
GetPerpendicularNormal ( ) : Vector2D
GetSquaredDistanceTo ( Vector2D Other ) : double
Negate ( ) : void
Normalize ( ) : void
Normalize ( double Length ) : void
NormalizeAndReturnLength ( ) : double
Range0To2PI ( double Value ) : double
Rotate ( double Radians ) : void
Set ( double inX, double inY ) : void
Vector2D ( double newX, double newY ) : System
Vector2D ( float newX, float newY ) : System
Zero ( ) : void
calc_distance ( double x1, double y1, double x2, double y2 ) : double
operator ( ) : Vector2D
operator ( ) : bool

Method Details

Cross() public method

public Cross ( Vector2D B ) : double
B Vector2D
return double

Dot() public method

public Dot ( Vector2D B ) : double
B Vector2D
return double

Equals() public method

public Equals ( System obj ) : bool
obj System
return bool

Equals() public method

public Equals ( Vector2D OtherVector, double ErrorValue ) : bool
OtherVector Vector2D
ErrorValue double
return bool

GetAngle0To2PI() public method

public GetAngle0To2PI ( ) : double
return double

GetDeltaAngle() public method

public GetDeltaAngle ( Vector2D A ) : double
A Vector2D
return double

GetDeltaAngle() static public method

static public GetDeltaAngle ( double StartAngle, double EndAngle ) : double
StartAngle double
EndAngle double
return double

GetDistanceBetween() public static method

public static GetDistanceBetween ( Vector2D A, Vector2D B ) : double
A Vector2D
B Vector2D
return double

GetDistanceBetweenSquared() public static method

public static GetDistanceBetweenSquared ( Vector2D A, Vector2D B ) : double
A Vector2D
B Vector2D
return double

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetLength() public method

public GetLength ( ) : double
return double

GetLengthSquared() public method

public GetLengthSquared ( ) : double
return double

GetPerpendicular() public method

public GetPerpendicular ( ) : Vector2D
return Vector2D

GetPerpendicularNormal() public method

public GetPerpendicularNormal ( ) : Vector2D
return Vector2D

GetSquaredDistanceTo() public method

public GetSquaredDistanceTo ( Vector2D Other ) : double
Other Vector2D
return double

Negate() public method

public Negate ( ) : void
return void

Normalize() public method

public Normalize ( ) : void
return void

Normalize() public method

public Normalize ( double Length ) : void
Length double
return void

NormalizeAndReturnLength() public method

public NormalizeAndReturnLength ( ) : double
return double

Range0To2PI() static public method

static public Range0To2PI ( double Value ) : double
Value double
return double

Rotate() public method

public Rotate ( double Radians ) : void
Radians double
return void

Set() public method

public Set ( double inX, double inY ) : void
inX double
inY double
return void

Vector2D() public method

public Vector2D ( double newX, double newY ) : System
newX double
newY double
return System

Vector2D() public method

public Vector2D ( float newX, float newY ) : System
newX float
newY float
return System

Zero() public method

public Zero ( ) : void
return void

calc_distance() public static method

public static calc_distance ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
return double

operator() static public method

static public operator ( ) : Vector2D
return Vector2D

operator() public static method

public static operator ( ) : bool
return bool

Property Details

x public_oe property

public double x
return double