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
Fields
x
public float x
Field Value
y
public float y
Field Value
z
public float z
Field Value
Properties
back
public static Vector3 back { get; }
Property Value
down
public static Vector3 down { get; }
Property Value
forward
public static Vector3 forward { get; }
Property Value
left
public static Vector3 left { get; }
Property Value
magnitude
public float magnitude { get; }
Property Value
normalized
public Vector3 normalized { get; }
Property Value
one
public static Vector3 one { get; }
Property Value
right
public static Vector3 right { get; }
Property Value
sqrMagnitude
public float sqrMagnitude { get; }
Property Value
up
public static Vector3 up { get; }
Property Value
zero
public static Vector3 zero { get; }
Property Value
Methods
Cross(Vector3, Vector3)
public static Vector3 Cross(Vector3 lhs, Vector3 rhs)
Parameters
Returns
Distance(Vector3, Vector3)
public static float Distance(Vector3 a, Vector3 b)
Parameters
Returns
Dot(Vector3, Vector3)
public static float Dot(Vector3 lhs, Vector3 rhs)
Parameters
Returns
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
Vector3An object to compare with this object.
Returns
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
Returns
LerpUnclamped(Vector3, Vector3, float)
public static Vector3 LerpUnclamped(Vector3 a, Vector3 b, float t)
Parameters
Returns
Magnitude(Vector3)
public static float Magnitude(Vector3 vector)
Parameters
vector
Vector3
Returns
Normalize()
public void Normalize()
Normalize(Vector3)
public static Vector3 Normalize(Vector3 value)
Parameters
value
Vector3
Returns
Scale(Vector3)
public void Scale(Vector3 scale)
Parameters
scale
Vector3
Scale(Vector3, Vector3)
public static Vector3 Scale(Vector3 a, Vector3 b)
Parameters
Returns
Set(float, float, float)
public void Set(float newX, float newY, float newZ)
Parameters
SqrMagnitude(Vector3)
public static float SqrMagnitude(Vector3 vector)
Parameters
vector
Vector3
Returns
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
Returns
operator /(Vector3, float)
public static Vector3 operator /(Vector3 a, float d)
Parameters
Returns
operator ==(Vector3, Vector3)
public static bool operator ==(Vector3 lhs, Vector3 rhs)
Parameters
Returns
operator !=(Vector3, Vector3)
public static bool operator !=(Vector3 lhs, Vector3 rhs)
Parameters
Returns
operator *(float, Vector3)
public static Vector3 operator *(float d, Vector3 a)
Parameters
Returns
operator *(Vector3, float)
public static Vector3 operator *(Vector3 a, float d)
Parameters
Returns
operator -(Vector3, Vector3)
public static Vector3 operator -(Vector3 a, Vector3 b)
Parameters
Returns
operator -(Vector3)
public static Vector3 operator -(Vector3 a)
Parameters
a
Vector3