メインコンテンツまでスキップ

Vector3

Namespace: FEMur.Geometry

public struct Vector3 : IEquatable<Vector3>, IComparable<Vector3>

Implements: System.IEquatable<FEMur.Geometry.Vector3>, System.IComparable<FEMur.Geometry.Vector3>

View source

Constructors​

NameSignatureSummary
Vector3(double, double, double)public Vector3(double x, double y, double z)—
Vector3(Vector3)public Vector3(Vector3 other)—

Properties​

NameSignatureSummary
Xpublic double X { readonly get; set; }—
Ypublic double Y { readonly get; set; }—
Zpublic double Z { readonly get; set; }—
this[int]public double this[int index] { get; set; }—

Methods​

NameSignatureSummary
Equals(Vector3)public bool Equals(Vector3 other)Indicates whether the current object is equal to another object of the same type.
EqualsWithTolerance(Vector3, double)public bool EqualsWithTolerance(Vector3 other, double tolerance)許容誤差を考慮して2つのVector3が等しいかを判定する。 Equals は GetHashCode との規約を満たすため厳密比較であり、 許容誤差での比較が必要な場合はこちらを使う。
CompareTo(Vector3)public int CompareTo(Vector3 other)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Equals(object?)public override bool Equals(object? obj)Indicates whether this instance and a specified object are equal.
GetHashCode()public override int GetHashCode()Returns the hash code for this instance.
ToString()public override string ToString()Returns the fully qualified type name of this instance.
Length()public double Length()—
Normalize(Vector3)public static Vector3 Normalize(Vector3 vector)—
Cross(Vector3, Vector3)public static Vector3 Cross(Vector3 a, Vector3 b)—
Cross(Vector3, Vector3, out Vector3)public static void Cross(Vector3 a, Vector3 b, out Vector3 result)—
Add(Vector3)public void Add(Vector3 other)—
Subtract(Vector3)public void Subtract(Vector3 other)—
Multiply(double)public void Multiply(double scalar)—
Divide(double)public void Divide(double scalar)—
Dot(Vector3, Vector3)public static double Dot(Vector3 a, Vector3 b)—
Reverse()public void Reverse()—
Copy()public Vector3 Copy()—

Operators​

NameSignatureSummary
operator +(Vector3, Vector3)public static Vector3 operator +(Vector3 a, Vector3 b)—
operator -(Vector3, Vector3)public static Vector3 operator -(Vector3 a, Vector3 b)—
operator *(Vector3, double)public static Vector3 operator *(Vector3 a, double scalar)—
operator /(Vector3, double)public static Vector3 operator /(Vector3 a, double scalar)—
operator ==(Vector3, Vector3)public static bool operator ==(Vector3 a, Vector3 b)—
operator !=(Vector3, Vector3)public static bool operator !=(Vector3 a, Vector3 b)—