C# Class Vector3D, UnityUtils

Afficher le fichier Open project: mortennobel/UnityUtils Class Usage Examples

Méthodes publiques

Свойство Type Description
x double
y double
z double

Private Properties

Свойство Type Description
Clamp double
Clamp01 double

Méthodes publiques

Méthode Description
ClampMagnitude ( Vector3D, vector, double maxLength ) : Vector3D,
Cross ( Vector3D, lhs, Vector3D, rhs ) : Vector3D,
Distance ( Vector3D, a, Vector3D, b ) : double
Dot ( Vector3D, lhs, Vector3D, rhs ) : double
Equals ( object other ) : bool
GetHashCode ( ) : int
Lerp ( Vector3D, from, Vector3D, to, double t ) : Vector3D,
Magnitude ( Vector3D, a ) : double
Max ( Vector3D, lhs, Vector3D, rhs ) : Vector3D,
Min ( Vector3D, lhs, Vector3D, rhs ) : Vector3D,
MoveTowards ( Vector3D, current, Vector3D, target, double maxDistanceDelta ) : Vector3D,
Normalize ( Vector3D, value ) : Vector3D,
Normalize ( ) : void
Project ( Vector3D, vector, Vector3D, onNormal ) : Vector3D,
ProjectOnPlane ( Vector3D, vector, Vector3D, planeNormal ) : Vector3D,
Reflect ( Vector3D, inDirection, Vector3D, inNormal ) : Vector3D,
Scale ( Vector3D, a, Vector3D, b ) : Vector3D,
Scale ( Vector3D, scale ) : void
Set ( double new_x, double new_y, double new_z ) : void
SqrMagnitude ( Vector3D, a ) : double
ToString ( ) : string
ToString ( string format ) : string
ToVector3 ( ) : Vector3
Vector3D ( Vector3 v ) : System
Vector3D ( double x, double y ) : System
Vector3D ( double x, double y, double z ) : System
operator ( ) : Vector3D,
operator ( ) : bool
this ( int index ) : double

Private Methods

Méthode Description
Clamp ( double value, double min, double max ) : double
Clamp01 ( double value ) : double

Method Details

ClampMagnitude() public static méthode

public static ClampMagnitude ( Vector3D, vector, double maxLength ) : Vector3D,
vector Vector3D,
maxLength double
Résultat Vector3D,

Cross() public static méthode

public static Cross ( Vector3D, lhs, Vector3D, rhs ) : Vector3D,
lhs Vector3D,
rhs Vector3D,
Résultat Vector3D,

Distance() public static méthode

public static Distance ( Vector3D, a, Vector3D, b ) : double
a Vector3D,
b Vector3D,
Résultat double

Dot() public static méthode

public static Dot ( Vector3D, lhs, Vector3D, rhs ) : double
lhs Vector3D,
rhs Vector3D,
Résultat double

Equals() public méthode

public Equals ( object other ) : bool
other object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Lerp() public static méthode

public static Lerp ( Vector3D, from, Vector3D, to, double t ) : Vector3D,
from Vector3D,
to Vector3D,
t double
Résultat Vector3D,

Magnitude() public static méthode

public static Magnitude ( Vector3D, a ) : double
a Vector3D,
Résultat double

Max() public static méthode

public static Max ( Vector3D, lhs, Vector3D, rhs ) : Vector3D,
lhs Vector3D,
rhs Vector3D,
Résultat Vector3D,

Min() public static méthode

public static Min ( Vector3D, lhs, Vector3D, rhs ) : Vector3D,
lhs Vector3D,
rhs Vector3D,
Résultat Vector3D,

MoveTowards() public static méthode

public static MoveTowards ( Vector3D, current, Vector3D, target, double maxDistanceDelta ) : Vector3D,
current Vector3D,
target Vector3D,
maxDistanceDelta double
Résultat Vector3D,

Normalize() public static méthode

public static Normalize ( Vector3D, value ) : Vector3D,
value Vector3D,
Résultat Vector3D,

Normalize() public méthode

public Normalize ( ) : void
Résultat void

Project() public static méthode

public static Project ( Vector3D, vector, Vector3D, onNormal ) : Vector3D,
vector Vector3D,
onNormal Vector3D,
Résultat Vector3D,

ProjectOnPlane() public static méthode

public static ProjectOnPlane ( Vector3D, vector, Vector3D, planeNormal ) : Vector3D,
vector Vector3D,
planeNormal Vector3D,
Résultat Vector3D,

Reflect() public static méthode

public static Reflect ( Vector3D, inDirection, Vector3D, inNormal ) : Vector3D,
inDirection Vector3D,
inNormal Vector3D,
Résultat Vector3D,

Scale() public static méthode

public static Scale ( Vector3D, a, Vector3D, b ) : Vector3D,
a Vector3D,
b Vector3D,
Résultat Vector3D,

Scale() public méthode

public Scale ( Vector3D, scale ) : void
scale Vector3D,
Résultat void

Set() public méthode

public Set ( double new_x, double new_y, double new_z ) : void
new_x double
new_y double
new_z double
Résultat void

SqrMagnitude() public static méthode

public static SqrMagnitude ( Vector3D, a ) : double
a Vector3D,
Résultat double

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( string format ) : string
format string
Résultat string

ToVector3() public méthode

public ToVector3 ( ) : Vector3
Résultat Vector3

Vector3D() public méthode

public Vector3D ( Vector3 v ) : System
v Vector3
Résultat System

Vector3D() public méthode

public Vector3D ( double x, double y ) : System
x double
y double
Résultat System

Vector3D() public méthode

public Vector3D ( double x, double y, double z ) : System
x double
y double
z double
Résultat System

operator() public static méthode

public static operator ( ) : Vector3D,
Résultat Vector3D,

operator() public static méthode

public static operator ( ) : bool
Résultat bool

this() public méthode

public this ( int index ) : double
index int
Résultat double

Property Details

x public_oe property

public double x
Résultat double

y public_oe property

public double y
Résultat double

z public_oe property

public double z
Résultat double