Table of Contents

Struct LunyVector3

Namespace
Luny.Engine.Bridge
/
Assembly
Luny.dll
public struct LunyVector3 : IEquatable<LunyVector3>
Expand Details ...
Implements

Constructors

LunyVector3(Double, Double)

public LunyVector3(Double x, Double y)

Parameters

Type Name Description
Double
x
Double
y

LunyVector3(Double, Double, Double)

public LunyVector3(Double x, Double y, Double z)

Parameters

Type Name Description
Double
x
Double
y
Double
z

LunyVector3(Single, Single)

public LunyVector3(Single x, Single y)

Parameters

Type Name Description
Single
x
Single
y

LunyVector3(Single, Single, Single)

public LunyVector3(Single x, Single y, Single z)

Parameters

Type Name Description
Single
x
Single
y
Single
z

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[Int32]

public Single this[Int32 index] { get; set; }

Parameters

Type Name Description
Int32
index

Property Value

Single

Left

public static LunyVector3 Left { get; }

Property Value

LunyVector3

Magnitude

public Single Magnitude { get; }

Property Value

Single

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 Single SqrMagnitude { get; }

Property Value

Single

X

public Single X { get; set; }

Property Value

Single

Y

public Single Y { get; set; }

Property Value

Single

Z

public Single Z { get; set; }

Property Value

Single

Zero

public static LunyVector3 Zero { get; }

Property Value

LunyVector3

Methods

Angle(LunyVector3, LunyVector3)

public static Single Angle(LunyVector3 from, LunyVector3 to)

Parameters

Type Name Description
LunyVector3
from
LunyVector3
to

Returns

Single

ClampMagnitude(LunyVector3, Single)

public static LunyVector3 ClampMagnitude(LunyVector3 vector, Single maxLength)

Parameters

Type Name Description
LunyVector3
vector
Single
maxLength

Returns

LunyVector3

Cross(LunyVector3, LunyVector3)

public static LunyVector3 Cross(LunyVector3 lhs, LunyVector3 rhs)

Parameters

Type Name Description
LunyVector3
lhs
LunyVector3
rhs

Returns

LunyVector3

Distance(LunyVector3, LunyVector3)

public static Single Distance(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

Single

Dot(LunyVector3, LunyVector3)

public static Single Dot(LunyVector3 lhs, LunyVector3 rhs)

Parameters

Type Name Description
LunyVector3
lhs
LunyVector3
rhs

Returns

Single

Equals(LunyVector3)

public Boolean Equals(LunyVector3 other)

Parameters

Type Name Description
LunyVector3
other

Returns

Boolean

Equals(Object)

public override Boolean Equals(Object obj)

Parameters

Type Name Description
Object
obj

Returns

Boolean

GetHashCode()

public override Int32 GetHashCode()

Returns

Int32

Lerp(LunyVector3, LunyVector3, Single)

public static LunyVector3 Lerp(LunyVector3 a, LunyVector3 b, Single t)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b
Single
t

Returns

LunyVector3

LerpUnclamped(LunyVector3, LunyVector3, Single)

public static LunyVector3 LerpUnclamped(LunyVector3 a, LunyVector3 b, Single t)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b
Single
t

Returns

LunyVector3

Max(LunyVector3, LunyVector3)

public static LunyVector3 Max(LunyVector3 lhs, LunyVector3 rhs)

Parameters

Type Name Description
LunyVector3
lhs
LunyVector3
rhs

Returns

LunyVector3

Min(LunyVector3, LunyVector3)

public static LunyVector3 Min(LunyVector3 lhs, LunyVector3 rhs)

Parameters

Type Name Description
LunyVector3
lhs
LunyVector3
rhs

Returns

LunyVector3

MoveTowards(LunyVector3, LunyVector3, Single)

public static LunyVector3 MoveTowards(LunyVector3 current, LunyVector3 target, Single maxDistanceDelta)

Parameters

Type Name Description
LunyVector3
current
LunyVector3
target
Single
maxDistanceDelta

Returns

LunyVector3

Normalize()

public void Normalize()

Normalize(LunyVector3)

public static LunyVector3 Normalize(LunyVector3 value)

Parameters

Type Name Description
LunyVector3
value

Returns

LunyVector3

Project(LunyVector3, LunyVector3)

public static LunyVector3 Project(LunyVector3 vector, LunyVector3 onNormal)

Parameters

Type Name Description
LunyVector3
vector
LunyVector3
onNormal

Returns

LunyVector3

ProjectOnPlane(LunyVector3, LunyVector3)

public static LunyVector3 ProjectOnPlane(LunyVector3 vector, LunyVector3 planeNormal)

Parameters

Type Name Description
LunyVector3
vector
LunyVector3
planeNormal

Returns

LunyVector3

Reflect(LunyVector3, LunyVector3)

public static LunyVector3 Reflect(LunyVector3 inDirection, LunyVector3 inNormal)

Parameters

Type Name Description
LunyVector3
inDirection
LunyVector3
inNormal

Returns

LunyVector3

Scale(LunyVector3)

public void Scale(LunyVector3 scale)

Parameters

Type Name Description
LunyVector3
scale

Scale(LunyVector3, LunyVector3)

public static LunyVector3 Scale(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

LunyVector3

Set(Single, Single, Single)

public void Set(Single newX, Single newY, Single newZ)

Parameters

Type Name Description
Single
newX
Single
newY
Single
newZ

SignedAngle(LunyVector3, LunyVector3, LunyVector3)

public static Single SignedAngle(LunyVector3 from, LunyVector3 to, LunyVector3 axis)

Parameters

Type Name Description
LunyVector3
from
LunyVector3
to
LunyVector3
axis

Returns

Single

Slerp(LunyVector3, LunyVector3, Single)

public static LunyVector3 Slerp(LunyVector3 a, LunyVector3 b, Single t)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b
Single
t

Returns

LunyVector3

SlerpUnclamped(LunyVector3, LunyVector3, Single)

public static LunyVector3 SlerpUnclamped(LunyVector3 a, LunyVector3 b, Single t)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b
Single
t

Returns

LunyVector3

SqrDistance(LunyVector3, LunyVector3)

public static Single SqrDistance(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

Single

ToString()

public override String ToString()

Returns

String

ToString(String)

public String ToString(String format)

Parameters

Type Name Description
String
format

Returns

String

Uniform(Double)

public static LunyVector3 Uniform(Double scale)

Parameters

Type Name Description
Double
scale

Returns

LunyVector3

Operators

operator +(LunyVector3, LunyVector3)

public static LunyVector3 operator +(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

LunyVector3

operator /(LunyVector3, LunyVector3)

public static LunyVector3 operator /(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

LunyVector3

operator /(LunyVector3, Double)

public static LunyVector3 operator /(LunyVector3 a, Double d)

Parameters

Type Name Description
LunyVector3
a
Double
d

Returns

LunyVector3

operator /(LunyVector3, Single)

public static LunyVector3 operator /(LunyVector3 a, Single d)

Parameters

Type Name Description
LunyVector3
a
Single
d

Returns

LunyVector3

operator ==(LunyVector3, LunyVector3)

public static Boolean operator ==(LunyVector3 lhs, LunyVector3 rhs)

Parameters

Type Name Description
LunyVector3
lhs
LunyVector3
rhs

Returns

Boolean

operator !=(LunyVector3, LunyVector3)

public static Boolean operator !=(LunyVector3 lhs, LunyVector3 rhs)

Parameters

Type Name Description
LunyVector3
lhs
LunyVector3
rhs

Returns

Boolean

operator *(LunyVector3, LunyVector3)

public static LunyVector3 operator *(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

LunyVector3

operator *(LunyVector3, Double)

public static LunyVector3 operator *(LunyVector3 a, Double d)

Parameters

Type Name Description
LunyVector3
a
Double
d

Returns

LunyVector3

operator *(LunyVector3, Single)

public static LunyVector3 operator *(LunyVector3 a, Single d)

Parameters

Type Name Description
LunyVector3
a
Single
d

Returns

LunyVector3

operator *(Double, LunyVector3)

public static LunyVector3 operator *(Double d, LunyVector3 a)

Parameters

Type Name Description
Double
d
LunyVector3
a

Returns

LunyVector3

operator *(Single, LunyVector3)

public static LunyVector3 operator *(Single d, LunyVector3 a)

Parameters

Type Name Description
Single
d
LunyVector3
a

Returns

LunyVector3

operator -(LunyVector3, LunyVector3)

public static LunyVector3 operator -(LunyVector3 a, LunyVector3 b)

Parameters

Type Name Description
LunyVector3
a
LunyVector3
b

Returns

LunyVector3

operator -(LunyVector3)

public static LunyVector3 operator -(LunyVector3 a)

Parameters

Type Name Description
LunyVector3
a

Returns

LunyVector3