C# Class Hyperion.Core.Geometry.Util

显示文件 Open project: Kintaro/Hyperion

Public Properties

Property Type Description
InvLog2 double
Random System.Random

Public Methods

Method Description
AbsCosTheta ( Vector w ) : double
AbsDot ( Normal a, Vector b ) : double
AbsDot ( Vector a, Normal b ) : double
AbsDot ( Vector a, Vector b ) : double
Ceil2Int ( double val ) : int
Clamp ( double val, double low, double high ) : double
Clamp ( int val, int low, int high ) : int
CoordinateSystem ( Vector v1, Vector &v2, Vector &v3 ) : void
CosPhi ( Vector w ) : double
CosTheta ( Vector w ) : double
Distance ( Point p1, Point p2 ) : double
DistanceSquared ( Point a, Point b ) : double
Double2Int ( double val ) : int
FaceForward ( Normal a, Normal b ) : Normal
Floor2Int ( double val ) : int
IsPowerOf2 ( int v ) : bool
Lanczos ( double x ) : double
Lanczos ( double x, double tau ) : double
Lerp ( double t, double v1, double v2 ) : double
Log2 ( double x ) : double
Log2Int ( double v ) : int
Mod ( int a, int b ) : int
Quadratic ( double A, double B, double C, double &t0, double &t1 ) : bool
Radians ( double deg ) : double
RoundToInt ( double val ) : int
RoundUpPow2 ( int v ) : int
SameHemisphere ( Vector w, Vector wp ) : bool
SinPhi ( Vector w ) : double
SinTheta ( Vector w ) : double
SinTheta2 ( Vector w ) : double
SolveLinearSystem2x2 ( double A, double B0, double B1, double &x0, double &x1 ) : bool
SphericalDirection ( double sintheta, double costheta, double phi ) : Vector
SphericalDirection ( double sintheta, double costheta, double phi, Vector x, Vector y, Vector z ) : Vector

Method Details

AbsCosTheta() public static method

public static AbsCosTheta ( Vector w ) : double
w Vector
return double

AbsDot() public static method

public static AbsDot ( Normal a, Vector b ) : double
a Normal
b Vector
return double

AbsDot() public static method

public static AbsDot ( Vector a, Normal b ) : double
a Vector
b Normal
return double

AbsDot() public static method

public static AbsDot ( Vector a, Vector b ) : double
a Vector
b Vector
return double

Ceil2Int() public static method

public static Ceil2Int ( double val ) : int
val double
return int

Clamp() public static method

public static Clamp ( double val, double low, double high ) : double
val double
low double
high double
return double

Clamp() public static method

public static Clamp ( int val, int low, int high ) : int
val int
low int
high int
return int

CoordinateSystem() public static method

public static CoordinateSystem ( Vector v1, Vector &v2, Vector &v3 ) : void
v1 Vector
v2 Vector
v3 Vector
return void

CosPhi() public static method

public static CosPhi ( Vector w ) : double
w Vector
return double

CosTheta() public static method

public static CosTheta ( Vector w ) : double
w Vector
return double

Distance() public static method

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

DistanceSquared() public static method

public static DistanceSquared ( Point a, Point b ) : double
a Point
b Point
return double

Double2Int() public static method

public static Double2Int ( double val ) : int
val double
return int

FaceForward() public static method

public static FaceForward ( Normal a, Normal b ) : Normal
a Normal
b Normal
return Normal

Floor2Int() public static method

public static Floor2Int ( double val ) : int
val double
return int

IsPowerOf2() public static method

public static IsPowerOf2 ( int v ) : bool
v int
return bool

Lanczos() public static method

public static Lanczos ( double x ) : double
x double
return double

Lanczos() public static method

public static Lanczos ( double x, double tau ) : double
x double
tau double
return double

Lerp() public static method

public static Lerp ( double t, double v1, double v2 ) : double
t double
v1 double
v2 double
return double

Log2() public static method

public static Log2 ( double x ) : double
x double
return double

Log2Int() public static method

public static Log2Int ( double v ) : int
v double
return int

Mod() public static method

public static Mod ( int a, int b ) : int
a int
b int
return int

Quadratic() public static method

public static Quadratic ( double A, double B, double C, double &t0, double &t1 ) : bool
A double
B double
C double
t0 double
t1 double
return bool

Radians() public static method

public static Radians ( double deg ) : double
deg double
return double

RoundToInt() public static method

public static RoundToInt ( double val ) : int
val double
return int

RoundUpPow2() public static method

public static RoundUpPow2 ( int v ) : int
v int
return int

SameHemisphere() public static method

public static SameHemisphere ( Vector w, Vector wp ) : bool
w Vector
wp Vector
return bool

SinPhi() public static method

public static SinPhi ( Vector w ) : double
w Vector
return double

SinTheta() public static method

public static SinTheta ( Vector w ) : double
w Vector
return double

SinTheta2() public static method

public static SinTheta2 ( Vector w ) : double
w Vector
return double

SolveLinearSystem2x2() public static method

public static SolveLinearSystem2x2 ( double A, double B0, double B1, double &x0, double &x1 ) : bool
A double
B0 double
B1 double
x0 double
x1 double
return bool

SphericalDirection() public static method

public static SphericalDirection ( double sintheta, double costheta, double phi ) : Vector
sintheta double
costheta double
phi double
return Vector

SphericalDirection() public static method

public static SphericalDirection ( double sintheta, double costheta, double phi, Vector x, Vector y, Vector z ) : Vector
sintheta double
costheta double
phi double
x Vector
y Vector
z Vector
return Vector

Property Details

InvLog2 public_oe static_oe property

public static double InvLog2
return double

Random public_oe static_oe property

public static Random,System Random
return System.Random