Struct Ray
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Ray : ITransformable3D<Ray>, IEquatable<Ray>
Constructors
View SourceRay((Vector3 position, Vector3 direction))
public Ray((Vector3 position, Vector3 direction) tuple)
Ray(Vector3, Vector3)
public Ray(Vector3 position, Vector3 direction)
Fields
View SourceDirection
[DataMember]
public readonly Vector3 Direction
MaxValue
public static Ray MaxValue
MinValue
public static Ray MinValue
Position
[DataMember]
public readonly Vector3 Position
Zero
public static Ray Zero
Methods
View SourceAlmostEquals(Ray, Single)
public readonly bool AlmostEquals(Ray x, float tolerance = 1E-07F)
Create((Vector3 position, Vector3 direction))
public static Ray Create((Vector3 position, Vector3 direction) tuple)
Create(Vector3, Vector3)
public static Ray Create(Vector3 position, Vector3 direction)
Deconstruct(out Vector3, out Vector3)
public readonly void Deconstruct(out Vector3 position, out Vector3 direction)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Ray)
public readonly bool Equals(Ray x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
Intersects(AABox)
public readonly float? Intersects(AABox box)
Intersects(Plane, Single)
public readonly float? Intersects(Plane plane, float tolerance = 1E-07F)
Intersects(Sphere)
public readonly float? Intersects(Sphere sphere)
Intersects(Triangle, Single)
public readonly float? Intersects(Triangle tri, float tolerance = 1E-07F)
SetDirection(Vector3)
public readonly Ray SetDirection(Vector3 x)
SetPosition(Vector3)
public readonly Ray SetPosition(Vector3 x)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source
Transform(Matrix4x4)
public readonly Ray Transform(Matrix4x4 mat)
Operators
View SourceEquality(Ray, Ray)
public static bool operator ==(Ray x0, Ray x1)
Implicit((Vector3 position, Vector3 direction) to Ray)
public static implicit operator Ray((Vector3 position, Vector3 direction) tuple)
Implicit(Ray to (Vector3 position, Vector3 direction))
public static implicit operator (Vector3 position, Vector3 direction)(Ray self)
Inequality(Ray, Ray)
public static bool operator !=(Ray x0, Ray x1)
Implements
System.IEquatable<T>