Table of Contents

Struct Vector3

Namespace
VMagicMirror.Buddy

UnityEngineのVector3とほぼ同等のことが出来るようなデータです。

public struct Vector3 : IEquatable<Vector3>
Implements
Inherited Members

Constructors

Vector3(float, float, float)

public Vector3(float x, float y, float z)

Parameters

x float
y float
z float

Fields

x

public float x

Field Value

float

y

public float y

Field Value

float

z

public float z

Field Value

float

Properties

back

public static Vector3 back { get; }

Property Value

Vector3

down

public static Vector3 down { get; }

Property Value

Vector3

forward

public static Vector3 forward { get; }

Property Value

Vector3

left

public static Vector3 left { get; }

Property Value

Vector3

magnitude

public float magnitude { get; }

Property Value

float

normalized

public Vector3 normalized { get; }

Property Value

Vector3

one

public static Vector3 one { get; }

Property Value

Vector3

right

public static Vector3 right { get; }

Property Value

Vector3

sqrMagnitude

public float sqrMagnitude { get; }

Property Value

float

up

public static Vector3 up { get; }

Property Value

Vector3

zero

public static Vector3 zero { get; }

Property Value

Vector3

Methods

Cross(Vector3, Vector3)

public static Vector3 Cross(Vector3 lhs, Vector3 rhs)

Parameters

lhs Vector3
rhs Vector3

Returns

Vector3

Distance(Vector3, Vector3)

public static float Distance(Vector3 a, Vector3 b)

Parameters

a Vector3
b Vector3

Returns

float

Dot(Vector3, Vector3)

public static float Dot(Vector3 lhs, Vector3 rhs)

Parameters

lhs Vector3
rhs Vector3

Returns

float

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Equals(Vector3)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Vector3 other)

Parameters

other Vector3

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Lerp(Vector3, Vector3, float)

public static Vector3 Lerp(Vector3 a, Vector3 b, float t)

Parameters

a Vector3
b Vector3
t float

Returns

Vector3

LerpUnclamped(Vector3, Vector3, float)

public static Vector3 LerpUnclamped(Vector3 a, Vector3 b, float t)

Parameters

a Vector3
b Vector3
t float

Returns

Vector3

Magnitude(Vector3)

public static float Magnitude(Vector3 vector)

Parameters

vector Vector3

Returns

float

Normalize()

public void Normalize()

Normalize(Vector3)

public static Vector3 Normalize(Vector3 value)

Parameters

value Vector3

Returns

Vector3

Scale(Vector3)

public void Scale(Vector3 scale)

Parameters

scale Vector3

Scale(Vector3, Vector3)

public static Vector3 Scale(Vector3 a, Vector3 b)

Parameters

a Vector3
b Vector3

Returns

Vector3

Set(float, float, float)

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

Parameters

newX float
newY float
newZ float

SqrMagnitude(Vector3)

public static float SqrMagnitude(Vector3 vector)

Parameters

vector Vector3

Returns

float

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator +(Vector3, Vector3)

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

Parameters

a Vector3
b Vector3

Returns

Vector3

operator /(Vector3, float)

public static Vector3 operator /(Vector3 a, float d)

Parameters

a Vector3
d float

Returns

Vector3

operator ==(Vector3, Vector3)

public static bool operator ==(Vector3 lhs, Vector3 rhs)

Parameters

lhs Vector3
rhs Vector3

Returns

bool

operator !=(Vector3, Vector3)

public static bool operator !=(Vector3 lhs, Vector3 rhs)

Parameters

lhs Vector3
rhs Vector3

Returns

bool

operator *(float, Vector3)

public static Vector3 operator *(float d, Vector3 a)

Parameters

d float
a Vector3

Returns

Vector3

operator *(Vector3, float)

public static Vector3 operator *(Vector3 a, float d)

Parameters

a Vector3
d float

Returns

Vector3

operator -(Vector3, Vector3)

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

Parameters

a Vector3
b Vector3

Returns

Vector3

operator -(Vector3)

public static Vector3 operator -(Vector3 a)

Parameters

a Vector3

Returns

Vector3