TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct Vec4L in Tinman.Core.Math.Vectors

A four-dimensional vector with 64-bit integer precision.

struct Vec4L implements IEquatable<Vec4L>

Remarks

/     \
|  X  |
|  Y  |
|  Z  |
|  W  |
\     /

Serialization

Serializer

The serialization helper object for values of Vec4L.

public static readonly field Serializer
type ITypeSerializerEx<Vec4L>

Public / Constants

Zero

The zero vector.

public static readonly field Zero
type Vec4L

Public / Attributes

Length

Returns the length of this vector.

public property Length { get }
type float64
value [>=0] The vector length.

LengthSqr

Returns the squared length of this vector.

public property LengthSqr { get }
type float64
value [>=0] The squared vector length.

W

W-coordinate of vector.

public readonly field W
type int64

X

X-coordinate of vector.

public readonly field X
type int64

Y

Y-coordinate of vector.

public readonly field Y
type int64

Z

Z-coordinate of vector.

public readonly field Z
type int64

Public / Constructors

Vec4L

Creates a new instance of Vec4L.

public constructor Vec4L (int64 x, int64 y, int64 z, int64 w)
params x X-coordinate of vector.
  y Y-coordinate of vector.
  z Z-coordinate of vector.
  w W-coordinate of vector.

Public / Methods

Add

Adds this vector and the given one.

[Pure]
public method Add (Vec4L v)
type Vec4L
params v The vector.
returns The resulting vector.

Adds this vector and the given one.

[Pure]
public method Add (int64 x, int64 y, int64 z, int64 w)
type Vec4L
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns The resulting vector.

Dot

Computes the dot product between this vector and the given one.

[Pure]
public method Dot (Vec4L v)
type int64
params v The vector.
returns The resulting vector.

Computes the dot product between this vector and the given one.

[Pure]
public method Dot (int64 x, int64 y, int64 z, int64 w)
type int64
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns The resulting vector.

Equals

Checks if this vector and the given one are equal.

[Pure]
public method Equals (Vec4L v)
type bool
params v The vector.
returns true if both vectors are equal, false if they are not.

Checks if this vector and the given one are equal.

[Pure]
public method Equals (int64 x, int64 y, int64 z, int64 w)
type bool
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns true if both vectors are equal, false if they are not.

GetHashCode

[Pure]
public override method GetHashCode ()
type int32

Max

Computes the component-wise maximum of this vector and the given one.

[Pure]
public method Max (Vec4L v)
type Vec4L
params v The vector.
returns The resulting vector.

Computes the component-wise maximum of this vector and the given one.

[Pure]
public method Max (int64 x, int64 y, int64 z, int64 w)
type Vec4L
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns The resulting vector.

Min

Computes the component-wise minimum of this vector and the given one.

[Pure]
public method Min (Vec4L v)
type Vec4L
params v The vector.
returns The resulting vector.

Computes the component-wise minimum of this vector and the given one.

[Pure]
public method Min (int64 x, int64 y, int64 z, int64 w)
type Vec4L
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns The resulting vector.

Mul

Multiplies this vector with the given one.

[Pure]
public method Mul (Vec4L v)
type Vec4L
params v The vector.
returns The resulting vector.

Multiplies this vector with the given scalar value.

[Pure]
public method Mul (int64 v)
type Vec4L
params v The scalar value.
returns The resulting vector.

Multiplies this vector with the given one.

[Pure]
public method Mul (int64 x, int64 y, int64 z, int64 w)
type Vec4L
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns The resulting vector.

Neg

Negates this vector.

[Pure]
public method Neg ()
type Vec4L
returns The resulting vector.

ShiftLeft

Performs a left bit shift on each component of this vector.

[Pure]
public method ShiftLeft (int32 v)
type Vec4L
params v The shift amount.
returns The resulting vector.

ShiftRight

Performs a right bit shift on each component of this vector.

[Pure]
public method ShiftRight (int32 v)
type Vec4L
params v The shift amount.
returns The resulting vector.

Sub

Subtracts the given vector from this one.

[Pure]
public method Sub (Vec4L v)
type Vec4L
params v The vector.
returns The resulting vector.

Subtracts the given vector from this one.

[Pure]
public method Sub (int64 x, int64 y, int64 z, int64 w)
type Vec4L
params x X-component of vector.
  y Y-component of vector.
  z Z-component of vector.
  w W-component of vector.
returns The resulting vector.

ToString

Returns a formatted string representation of this vector.

[Pure]
public override method ToString ()
type string
returns [not-null] The formatted string value.