C# Class GLSharp.Util.Vector3

显示文件 Open project: colin-dumitru/GLSharp

Public Properties

Property Type Description
Elements float[]

Public Methods

Method Description
Add ( Vector3 other ) : Vector3
Add3 ( float x, float y, float z ) : Vector3
Build ( Vector3 other ) : Vector3
Build3 ( float x, float y, float z ) : Vector3
Clone ( ) : Vector3
Cross ( Vector3 other ) : Vector3
Direction ( Vector3 to ) : Vector3
Distance ( Vector3 other ) : float
Distance3 ( float x, float y, float z ) : float
Dot ( Vector3 other ) : float
Length ( ) : int
MultScalar ( float scalar ) : void
MultVect ( Vector3 other ) : void
Normalize ( ) : Vector3
Scale ( float val ) : Vector3
Set ( Vector3 other ) : void
Set3 ( float x, float y, float z ) : void
Subtract ( Vector3 other ) : Vector3
Subtract3 ( float x, float y, float z ) : Vector3
Vector3 ( float elements ) : System

Method Details

Add() public method

public Add ( Vector3 other ) : Vector3
other Vector3
return Vector3

Add3() public method

public Add3 ( float x, float y, float z ) : Vector3
x float
y float
z float
return Vector3

Build() public static method

public static Build ( Vector3 other ) : Vector3
other Vector3
return Vector3

Build3() public static method

public static Build3 ( float x, float y, float z ) : Vector3
x float
y float
z float
return Vector3

Clone() public method

public Clone ( ) : Vector3
return Vector3

Cross() public method

public Cross ( Vector3 other ) : Vector3
other Vector3
return Vector3

Direction() public method

public Direction ( Vector3 to ) : Vector3
to Vector3
return Vector3

Distance() public method

public Distance ( Vector3 other ) : float
other Vector3
return float

Distance3() public method

public Distance3 ( float x, float y, float z ) : float
x float
y float
z float
return float

Dot() public method

public Dot ( Vector3 other ) : float
other Vector3
return float

Length() public method

public Length ( ) : int
return int

MultScalar() public method

public MultScalar ( float scalar ) : void
scalar float
return void

MultVect() public method

public MultVect ( Vector3 other ) : void
other Vector3
return void

Normalize() public method

public Normalize ( ) : Vector3
return Vector3

Scale() public method

public Scale ( float val ) : Vector3
val float
return Vector3

Set() public method

public Set ( Vector3 other ) : void
other Vector3
return void

Set3() public method

public Set3 ( float x, float y, float z ) : void
x float
y float
z float
return void

Subtract() public method

public Subtract ( Vector3 other ) : Vector3
other Vector3
return Vector3

Subtract3() public method

public Subtract3 ( float x, float y, float z ) : Vector3
x float
y float
z float
return Vector3

Vector3() public method

public Vector3 ( float elements ) : System
elements float
return System

Property Details

Elements public_oe property

public float[] Elements
return float[]