C# Class AgaHackTools.Example.Shared.Math.Vector3

Mostra file Open project: aganonki/HackTools

Public Properties

Property Type Description
X float
Y float
Z float

Public Methods

Method Description
AbsVector3 ( ) : Vector3
Aligned ( ) : VectorAligned
DistanceTo ( Vector3 other ) : float

Returns the distance from this Vector3 to the given Vector3

Equals ( object obj ) : bool
GetHashCode ( ) : int
Length ( ) : float

Returns the length of this Vector3

LengthSqr ( ) : float
Normalize ( ) : Vector3
ToFloat ( ) : float[]
ToString ( ) : string
Vector3 ( Vector3 vec ) : System

Initializes a new Vector3 by copying the values of the given Vector3

Vector3 ( float values ) : System

Initializes a new Vector3 using the given float-array

Vector3 ( float x, float y, float z ) : System

Initializes a new Vector3 using the given values

dot ( Vector3 dot ) : float
operator ( ) : Vector3
operator ( ) : bool
this ( int i ) : float

Method Details

AbsVector3() public method

public AbsVector3 ( ) : Vector3
return Vector3

Aligned() public method

public Aligned ( ) : VectorAligned
return VectorAligned

DistanceTo() public method

Returns the distance from this Vector3 to the given Vector3
public DistanceTo ( Vector3 other ) : float
other Vector3
return float

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

Length() public method

Returns the length of this Vector3
public Length ( ) : float
return float

LengthSqr() public method

public LengthSqr ( ) : float
return float

Normalize() public method

public Normalize ( ) : Vector3
return Vector3

ToFloat() public method

public ToFloat ( ) : float[]
return float[]

ToString() public method

public ToString ( ) : string
return string

Vector3() public method

Initializes a new Vector3 by copying the values of the given Vector3
public Vector3 ( Vector3 vec ) : System
vec Vector3
return System

Vector3() public method

Initializes a new Vector3 using the given float-array
public Vector3 ( float values ) : System
values float
return System

Vector3() public method

Initializes a new Vector3 using the given values
public Vector3 ( float x, float y, float z ) : System
x float
y float
z float
return System

dot() public method

public dot ( Vector3 dot ) : float
dot Vector3
return float

operator() public static method

public static operator ( ) : Vector3
return Vector3

operator() public static method

public static operator ( ) : bool
return bool

this() public method

public this ( int i ) : float
i int
return float

Property Details

X public_oe property

public float X
return float

Y public_oe property

public float Y
return float

Z public_oe property

public float Z
return float