C# Class FlatRedBall.Math.Geometry.Point

Mostra file Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
X double
Y double
Zero Point

Public Methods

Method Description
DistanceTo ( Point p1, Point p2 ) : double
Dot ( Point p1, Point p2 ) : double
EqualdWithin ( Point p, double error ) : bool
Equals ( Point p ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
LengthSquared ( ) : double
Normalize ( ) : void
Normalize ( Point &pointToNormalize, Point &result ) : void
Point ( Microsoft.Xna.Framework.Vector3 &vector ) : System
Point ( double x, double y ) : System
Point ( float x, float y ) : System
ToString ( ) : string
ToVector3 ( ) : Microsoft.Xna.Framework.Vector3
operator ( ) : Point
operator ( ) : bool

Method Details

DistanceTo() public static method

public static DistanceTo ( Point p1, Point p2 ) : double
p1 Point
p2 Point
return double

Dot() public static method

public static Dot ( Point p1, Point p2 ) : double
p1 Point
p2 Point
return double

EqualdWithin() public method

public EqualdWithin ( Point p, double error ) : bool
p Point
error double
return bool

Equals() public method

public Equals ( Point p ) : bool
p Point
return bool

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

LengthSquared() public method

public LengthSquared ( ) : double
return double

Normalize() public method

public Normalize ( ) : void
return void

Normalize() public static method

public static Normalize ( Point &pointToNormalize, Point &result ) : void
pointToNormalize Point
result Point
return void

Point() public method

public Point ( Microsoft.Xna.Framework.Vector3 &vector ) : System
vector Microsoft.Xna.Framework.Vector3
return System

Point() public method

public Point ( double x, double y ) : System
x double
y double
return System

Point() public method

public Point ( float x, float y ) : System
x float
y float
return System

ToString() public method

public ToString ( ) : string
return string

ToVector3() public method

public ToVector3 ( ) : Microsoft.Xna.Framework.Vector3
return Microsoft.Xna.Framework.Vector3

operator() public static method

public static operator ( ) : Point
return Point

operator() public static method

public static operator ( ) : bool
return bool

Property Details

X public_oe property

public double X
return double

Y public_oe property

public double Y
return double

Zero public_oe static_oe property

public static Point Zero
return Point