Struct LunyVector3
- Namespace
- Luny.Engine.Bridge
- Assembly
- Luny.dll
public struct LunyVector3
Constructors
LunyVector3(double, double)
public LunyVector3(double x, double y)
Parameters
x double
y double
LunyVector3(double, double, double)
public LunyVector3(double x, double y, double z)
Parameters
x double
y double
z double
LunyVector3(float, float)
public LunyVector3(float x, float y)
Parameters
x float
y float
LunyVector3(float, float, float)
public LunyVector3(float x, float y, float z)
Parameters
x float
y float
z float
Fields
Up
public static LunyVector3 Up
Field Value
- LunyVector3
Properties
Back
public static LunyVector3 Back { get; }
Property Value
- LunyVector3
Down
public static LunyVector3 Down { get; }
Property Value
- LunyVector3
Forward
public static LunyVector3 Forward { get; }
Property Value
- LunyVector3
this[int]
public float this[int index] { get; set; }
Parameters
index int
Property Value
- float
Left
public static LunyVector3 Left { get; }
Property Value
- LunyVector3
Magnitude
public float Magnitude { get; }
Property Value
- float
NegativeInfinity
public static LunyVector3 NegativeInfinity { get; }
Property Value
- LunyVector3
Normalized
public LunyVector3 Normalized { get; }
Property Value
- LunyVector3
One
public static LunyVector3 One { get; }
Property Value
- LunyVector3
PositiveInfinity
public static LunyVector3 PositiveInfinity { get; }
Property Value
- LunyVector3
Right
public static LunyVector3 Right { get; }
Property Value
- LunyVector3
SqrMagnitude
public float SqrMagnitude { get; }
Property Value
- float
X
public float X { get; set; }
Property Value
- float
Y
public float Y { get; set; }
Property Value
- float
Z
public float Z { get; set; }
Property Value
- float
Zero
public static LunyVector3 Zero { get; }
Property Value
- LunyVector3
Methods
Angle(LunyVector3, LunyVector3)
public static float Angle(LunyVector3 from, LunyVector3 to)
Parameters
from LunyVector3
to LunyVector3
Returns
- float
ClampMagnitude(LunyVector3, float)
public static LunyVector3 ClampMagnitude(LunyVector3 vector, float maxLength)
Parameters
vector LunyVector3
maxLength float
Returns
- LunyVector3
Cross(LunyVector3, LunyVector3)
public static LunyVector3 Cross(LunyVector3 lhs, LunyVector3 rhs)
Parameters
lhs LunyVector3
rhs LunyVector3
Returns
- LunyVector3
Distance(LunyVector3, LunyVector3)
public static float Distance(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- float
Dot(LunyVector3, LunyVector3)
public static float Dot(LunyVector3 lhs, LunyVector3 rhs)
Parameters
lhs LunyVector3
rhs LunyVector3
Returns
- float
Equals(LunyVector3)
public bool Equals(LunyVector3 other)
Parameters
other LunyVector3
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
obj object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Lerp(LunyVector3, LunyVector3, float)
public static LunyVector3 Lerp(LunyVector3 a, LunyVector3 b, float t)
Parameters
a LunyVector3
b LunyVector3
t float
Returns
- LunyVector3
LerpUnclamped(LunyVector3, LunyVector3, float)
public static LunyVector3 LerpUnclamped(LunyVector3 a, LunyVector3 b, float t)
Parameters
a LunyVector3
b LunyVector3
t float
Returns
- LunyVector3
Max(LunyVector3, LunyVector3)
public static LunyVector3 Max(LunyVector3 lhs, LunyVector3 rhs)
Parameters
lhs LunyVector3
rhs LunyVector3
Returns
- LunyVector3
Min(LunyVector3, LunyVector3)
public static LunyVector3 Min(LunyVector3 lhs, LunyVector3 rhs)
Parameters
lhs LunyVector3
rhs LunyVector3
Returns
- LunyVector3
MoveTowards(LunyVector3, LunyVector3, float)
public static LunyVector3 MoveTowards(LunyVector3 current, LunyVector3 target, float maxDistanceDelta)
Parameters
current LunyVector3
target LunyVector3
maxDistanceDelta float
Returns
- LunyVector3
Normalize()
Normalize(LunyVector3)
public static LunyVector3 Normalize(LunyVector3 value)
Parameters
value LunyVector3
Returns
- LunyVector3
Project(LunyVector3, LunyVector3)
public static LunyVector3 Project(LunyVector3 vector, LunyVector3 onNormal)
Parameters
vector LunyVector3
onNormal LunyVector3
Returns
- LunyVector3
ProjectOnPlane(LunyVector3, LunyVector3)
public static LunyVector3 ProjectOnPlane(LunyVector3 vector, LunyVector3 planeNormal)
Parameters
vector LunyVector3
planeNormal LunyVector3
Returns
- LunyVector3
Reflect(LunyVector3, LunyVector3)
public static LunyVector3 Reflect(LunyVector3 inDirection, LunyVector3 inNormal)
Parameters
inDirection LunyVector3
inNormal LunyVector3
Returns
- LunyVector3
Scale(LunyVector3)
public void Scale(LunyVector3 scale)
Parameters
scale LunyVector3
Scale(LunyVector3, LunyVector3)
public static LunyVector3 Scale(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- LunyVector3
Set(float, float, float)
public void Set(float newX, float newY, float newZ)
Parameters
newX float
newY float
newZ float
SignedAngle(LunyVector3, LunyVector3, LunyVector3)
public static float SignedAngle(LunyVector3 from, LunyVector3 to, LunyVector3 axis)
Parameters
from LunyVector3
to LunyVector3
axis LunyVector3
Returns
- float
Slerp(LunyVector3, LunyVector3, float)
public static LunyVector3 Slerp(LunyVector3 a, LunyVector3 b, float t)
Parameters
a LunyVector3
b LunyVector3
t float
Returns
- LunyVector3
SlerpUnclamped(LunyVector3, LunyVector3, float)
public static LunyVector3 SlerpUnclamped(LunyVector3 a, LunyVector3 b, float t)
Parameters
a LunyVector3
b LunyVector3
t float
Returns
- LunyVector3
SqrDistance(LunyVector3, LunyVector3)
public static float SqrDistance(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- float
ToString()
public override string ToString()
Returns
- string
ToString(string)
public string ToString(string format)
Parameters
format string
Returns
- string
public static LunyVector3 Uniform(double scale)
Parameters
scale double
Returns
- LunyVector3
Operators
operator +(LunyVector3, LunyVector3)
public static LunyVector3 operator +(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- LunyVector3
operator /(LunyVector3, LunyVector3)
public static LunyVector3 operator /(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- LunyVector3
operator /(LunyVector3, double)
public static LunyVector3 operator /(LunyVector3 a, double d)
Parameters
a LunyVector3
d double
Returns
- LunyVector3
operator /(LunyVector3, float)
public static LunyVector3 operator /(LunyVector3 a, float d)
Parameters
a LunyVector3
d float
Returns
- LunyVector3
operator ==(LunyVector3, LunyVector3)
public static bool operator ==(LunyVector3 lhs, LunyVector3 rhs)
Parameters
lhs LunyVector3
rhs LunyVector3
Returns
- bool
operator !=(LunyVector3, LunyVector3)
public static bool operator !=(LunyVector3 lhs, LunyVector3 rhs)
Parameters
lhs LunyVector3
rhs LunyVector3
Returns
- bool
operator *(LunyVector3, LunyVector3)
public static LunyVector3 operator *(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- LunyVector3
operator *(LunyVector3, double)
public static LunyVector3 operator *(LunyVector3 a, double d)
Parameters
a LunyVector3
d double
Returns
- LunyVector3
operator *(LunyVector3, float)
public static LunyVector3 operator *(LunyVector3 a, float d)
Parameters
a LunyVector3
d float
Returns
- LunyVector3
operator *(double, LunyVector3)
public static LunyVector3 operator *(double d, LunyVector3 a)
Parameters
d double
a LunyVector3
Returns
- LunyVector3
operator *(float, LunyVector3)
public static LunyVector3 operator *(float d, LunyVector3 a)
Parameters
d float
a LunyVector3
Returns
- LunyVector3
operator -(LunyVector3, LunyVector3)
public static LunyVector3 operator -(LunyVector3 a, LunyVector3 b)
Parameters
a LunyVector3
b LunyVector3
Returns
- LunyVector3
operator -(LunyVector3)
public static LunyVector3 operator -(LunyVector3 a)
Parameters
a LunyVector3
Returns
- LunyVector3