RaySegment Struct

Summary

Represents a three dimensional line based on a 2 points in space.
Namespace
StrideToolkit.Mathematics
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<RaySegment>"] Type-.->Interface1["IFormattable"] Type["RaySegment"] class Type type-node

Syntax

[DataContract]
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct RaySegment : ValueType, IEquatable<RaySegment>, IFormattable

Attributes

Type Description
DataContract
StructLayoutAttribute

Constructors

Name Summary
RaySegment(Vector3, Vector3) Initializes a new instance of the RaySegment struct.

Fields

Name Constant Value Summary
End
The position in three dimensional space where the ray ends.
Start
The position in three dimensional space where the ray starts.

Properties

Name Value Summary
Length float
Length of RaySegment

Methods

Name Value Summary
Equals(object) bool
Determines whether the specified object is equal to this instance.
Equals(RaySegment) bool
Determines whether the specified Stride.Core.Mathematics.Vector4 is equal to this instance.
GetHashCode() int
Returns a hash code for this instance.
ToString() string
Returns a string that represents this instance.
ToString(IFormatProvider) string
Returns a string that represents this instance.
ToString(string) string
Returns a string that represents this instance.
ToString(string, IFormatProvider) string
Returns a string that represents this instance.

Operators

Name Value Summary
explicit operator Ray(RaySegment) Ray
operator !=(RaySegment, RaySegment) bool
operator ==(RaySegment, RaySegment) bool