void | Deconstruct ( float x, float y, float z ) | Helper method for deconstruction into a tuple. |
Vector3 | Abs ( ) | Returns a new vector with all components in absolute values (i.e. positive). |
float | AngleTo ( Vector3 to ) | Returns the unsigned minimum angle to the given vector, in radians. |
Vector3 | Bounce ( Vector3 normal ) | Returns this vector "bounced off" from a plane defined by the given normal. |
Vector3 | Ceil ( ) | Returns a new vector with all components rounded up (towards positive infinity). |
Vector3 | Clamp ( Vector3 min, Vector3 max ) | Returns a new vector with all components clamped between the components of name and name using Mathf.Clamp(real_t, real_t, real_t) . |
Vector3 | Clamp ( float min, float max ) | Returns a new vector with all components clamped between the name and name using Mathf.Clamp(real_t, real_t, real_t) . |
Vector3 | Cross ( Vector3 with ) | Returns the cross product of this vector and name . |
Vector3 | CubicInterpolate ( Vector3 b, Vector3 preA, Vector3 postB, float weight ) | Performs a cubic interpolation between vectors name , this vector, name , and name , by the given amount name . |
Vector3 | CubicInterpolateInTime ( Vector3 b, Vector3 preA, Vector3 postB, float weight, float t, float preAT, float postBT ) | Performs a cubic interpolation between vectors name , this vector, name , and name , by the given amount name . It can perform smoother interpolation than CubicInterpolate by the time values. |
Vector3 | BezierInterpolate ( Vector3 control1, Vector3 control2, Vector3 end, float t ) | Returns the point at the given name on a one-dimensional Bezier curve defined by this vector and the given name , name , and name points. |
Vector3 | BezierDerivative ( Vector3 control1, Vector3 control2, Vector3 end, float t ) | Returns the derivative at the given name on the Bezier curve defined by this vector and the given name , name , and name points. |
Vector3 | DirectionTo ( Vector3 to ) | Returns the normalized vector pointing from this vector to name . |
float | DistanceSquaredTo ( Vector3 to ) | Returns the squared distance between this vector and name . This method runs faster than DistanceTo , so prefer it if you need to compare vectors or need the squared distance for some formula. |
float | DistanceTo ( Vector3 to ) | Returns the distance between this vector and name . |
float | Dot ( Vector3 with ) | Returns the dot product of this vector and name . |
Vector3 | Floor ( ) | Returns a new vector with all components rounded down (towards negative infinity). |
Vector3 | Inverse ( ) | Returns the inverse of this vector. This is the same as new Vector3(1 / v.X, 1 / v.Y, 1 / v.Z) . |
bool | IsFinite ( ) | Returns true if this vector is finite, by calling Mathf.IsFinite(real_t) on each component. |
bool | IsNormalized ( ) | Returns true if the vector is normalized, and false otherwise. |
float | Length ( ) | Returns the length (magnitude) of this vector. |
float | LengthSquared ( ) | Returns the squared length (squared magnitude) of this vector. This method runs faster than Length , so prefer it if you need to compare vectors or need the squared length for some formula. |
Vector3 | Lerp ( Vector3 to, float weight ) | Returns the result of the linear interpolation between this vector and name by amount name . |
Vector3 | LimitLength ( float length ) | Returns the vector with a maximum length by limiting its length to name . |
Vector3 | Max ( Vector3 with ) | Returns the result of the component-wise maximum between this vector and name . Equivalent to new Vector3(Mathf.Max(X, with.X), Mathf.Max(Y, with.Y), Mathf.Max(Z, with.Z)) . |
Vector3 | Max ( float with ) | Returns the result of the component-wise maximum between this vector and name . Equivalent to new Vector3(Mathf.Max(X, with), Mathf.Max(Y, with), Mathf.Max(Z, with)) . |
Vector3 | Min ( Vector3 with ) | Returns the result of the component-wise minimum between this vector and name . Equivalent to new Vector3(Mathf.Min(X, with.X), Mathf.Min(Y, with.Y), Mathf.Min(Z, with.Z)) . |
Axis | MaxAxisIndex ( ) | Returns the axis of the vector's highest value. See Axis . If all components are equal, this method returns Axis.X . |
Axis | MinAxisIndex ( ) | Returns the axis of the vector's lowest value. See Axis . If all components are equal, this method returns Axis.Z . |
Vector3 | MoveToward ( Vector3 to, float delta ) | Moves this vector toward name by the fixed name amount. |
Vector3 | Normalized ( ) | Returns the vector scaled to unit length. Equivalent to v / v.Length() . |
Basis | Outer ( Vector3 with ) | Returns the outer product with name . |
Vector3 | PosMod ( float mod ) | Returns a vector composed of the Mathf.PosMod(real_t, real_t) of this vector's components and name . |
Vector3 | PosMod ( Vector3 modv ) | Returns a vector composed of the Mathf.PosMod(real_t, real_t) of this vector's components and name 's components. |
Vector3 | Project ( Vector3 onNormal ) | Returns a new vector resulting from projecting this vector onto the given vector name . The resulting new vector is parallel to name . See also Slide . Note: If the vector name is a zero vector, the components of the resulting new vector will be real_t.NaN . |
Vector3 | Reflect ( Vector3 normal ) | Returns this vector reflected from a plane defined by the given name . |
Vector3 | Rotated ( Vector3 axis, float angle ) | Rotates this vector around a given name vector by name (in radians). The name vector must be a normalized vector. |
Vector3 | Round ( ) | Returns this vector with all components rounded to the nearest integer, with halfway cases rounded towards the nearest multiple of two. |
Vector3 | Sign ( ) | Returns a vector with each component set to one or negative one, depending on the signs of this vector's components, or zero if the component is zero, by calling Mathf.Sign(real_t) on each component. |
float | SignedAngleTo ( Vector3 to, Vector3 axis ) | Returns the signed angle to the given vector, in radians. The sign of the angle is positive in a counter-clockwise direction and negative in a clockwise direction when viewed from the side specified by the name . |
Vector3 | Slerp ( Vector3 to, float weight ) | Returns the result of the spherical linear interpolation between this vector and name by amount name . This method also handles interpolating the lengths if the input vectors have different lengths. For the special case of one or both input vectors having zero length, this method behaves like Lerp . |
Vector3 | Slide ( Vector3 normal ) | Returns a new vector resulting from sliding this vector along a plane with normal name . The resulting new vector is perpendicular to name , and is equivalent to this vector minus its projection on name . See also Project . Note: The vector name must be normalized. See also Normalized . |
Vector3 | Snapped ( Vector3 step ) | Returns a new vector with each component snapped to the nearest multiple of the corresponding component in name . This can also be used to round to an arbitrary number of decimals. |
Vector3 | Snapped ( float step ) | Returns a new vector with each component snapped to the nearest multiple of name . This can also be used to round to an arbitrary number of decimals. |
bool | Equals ( object? obj ) | Returns true if the vector is exactly equal to the given object ( name ). Note: Due to floating-point precision errors, consider using IsEqualApprox instead, which is more reliable. |
bool | Equals ( Vector3 other ) | Returns true if the vectors are exactly equal. Note: Due to floating-point precision errors, consider using IsEqualApprox instead, which is more reliable. |
bool | IsEqualApprox ( Vector3 other ) | Returns true if this vector and name are approximately equal, by running Mathf.IsEqualApprox(real_t, real_t) on each component. |
bool | IsZeroApprox ( ) | Returns true if this vector's values are approximately zero, by running Mathf.IsZeroApprox(real_t) on each component. This method is faster than using IsEqualApprox with one value as a zero vector. |
int | GetHashCode ( ) | Serves as the hash function for Vector3 . |
string | ToString ( ) | Converts this Vector3 to a string. |
string | ToString ( string? format ) | Converts this Vector3 to a string with the given name . |