메소드 | 설명 | |
---|---|---|
Abs ( this v ) : |
Absolute value of components
|
|
AngleAroundAxis ( |
|
|
Approx ( |
test if a Vector3 is close to another Vector3 (due to floating point inprecision) compares the square of the distance to the square of the range as this avoids calculating a square root which is much slower than squaring the range
|
|
CalculateLineLineIntersection ( |
Calculates the intersection line segment between 2 lines (not segments). Returns false if no solution can be found.
|
|
Center ( |
Gets the center of two points
|
|
Center ( this points ) : |
|
|
FastNormalized ( this vec1 ) : |
Using the magic of 0x5f3759df
|
|
IsNaN ( this vec ) : bool |
|
|
Lerp ( |
Direct speedup of Vector3.Lerp
|
|
MidPoint ( this first, |
|
|
NearestPoint ( |
Find a point on the infinite line nearest to point
|
|
NearestPointStrict ( |
find a point on the line segment nearest to point
|
|
ProjectOntoPlane ( this v, |
Vector3.Project, onto a plane
|
|
RandomDirection ( float spread, |
Returns a random direction in a cone. a spread of 0 is straight, 0.5 is 180*
|
|
Sinerp ( |
||
SqrDistance ( this first, |
gets the square distance between two vector3 positions. this is much faster that Vector3.distance.
|
|
SqrLineDistance ( this point, |
get the square distance from a point to a line segment.
|
|
Vector3Normal ( |
Gets the normal of the triangle formed by the 3 vectors
|
public static AngleAroundAxis ( |
||
dir1 | ||
dir2 | ||
axis | ||
리턴 | float |
public static Approx ( |
||
val | ||
about | ||
range | float | |
리턴 | bool |
public static CalculateLineLineIntersection ( |
||
line1Point1 | ||
line1Point2 | ||
line2Point1 | ||
line2Point2 | ||
resultSegmentPoint1 | ||
resultSegmentPoint2 | ||
리턴 | bool |
public static Center ( |
||
vec1 | ||
vec2 | ||
리턴 |
public static Center ( this points ) : |
||
points | this | |
리턴 |
public static FastNormalized ( this vec1 ) : |
||
vec1 | this | |
리턴 |
public static Lerp ( |
||
v1 | ||
v2 | ||
value | float | |
리턴 |
public static MidPoint ( this first, |
||
first | this | |
second | ||
리턴 |
public static NearestPoint ( |
||
lineStart | ||
lineEnd | ||
point | ||
리턴 |
public static NearestPointStrict ( |
||
lineStart | ||
lineEnd | ||
point | ||
리턴 |
public static ProjectOntoPlane ( this v, |
||
v | this | |
planeNormal | ||
리턴 |
public static RandomDirection ( float spread, |
||
spread | float | |
forward | must be unit | |
리턴 |
public static Sinerp ( |
||
from | ||
to | ||
value | float | |
리턴 |
public static SqrDistance ( this first, |
||
first | this | first point |
second | second point | |
리턴 | float |
public static SqrLineDistance ( this point, |
||
point | this | point to get distance to |
lineP1 | line segment start point | |
lineP2 | line segment end point | |
closestPoint | int | set to either 1, 2, or 4, determining which end the point is closest to (p1, p2, or the middle) |
리턴 | float |
public static Vector3Normal ( |
||
vec1 | ||
vec2 | ||
vec3 | ||
리턴 |