Show / Hide Table of Contents

Struct Axis

An axis given by a location and a direction. There is no orientation for an x-direction or y-direction. If you need that use CoordSys Keep in mind that this is a value type. Passing a value type as a (non ref) parameter and changing it's value inside the invoked method leaves the original unchanged.

Implements
System.Runtime.Serialization.ISerializable
IJsonSerialize
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CADability
Assembly: CADability.dll
Syntax
[Serializable]
[JsonVersion(serializeAsStruct = true, version = 1)]
public struct Axis : ISerializable, IJsonSerialize

Constructors

| Improve this Doc View Source

Axis(GeoPoint, GeoPoint)

Creates a new axis from two points

Declaration
public Axis(GeoPoint StartPoint, GeoPoint EndPoint)
Parameters
Type Name Description
GeoPoint StartPoint

startpoint

GeoPoint EndPoint

direction point

| Improve this Doc View Source

Axis(GeoPoint, GeoVector)

Creates a new axis from a location and a direction

Declaration
public Axis(GeoPoint location, GeoVector direction)
Parameters
Type Name Description
GeoPoint location

location

GeoVector direction

direction

| Improve this Doc View Source

Axis(IJsonReadStruct)

Declaration
public Axis(IJsonReadStruct data)
Parameters
Type Name Description
IJsonReadStruct data
| Improve this Doc View Source

Axis(SerializationInfo, StreamingContext)

Constructor required by deserialization

Declaration
public Axis(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

SerializationInfo

System.Runtime.Serialization.StreamingContext context

StreamingContext

Fields

| Improve this Doc View Source

Direction

The direction of the axis

Declaration
public GeoVector Direction
Field Value
Type Description
GeoVector
| Improve this Doc View Source

Location

An arbitrary location of the axis

Declaration
public GeoPoint Location
Field Value
Type Description
GeoPoint

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo to populate with data.

System.Runtime.Serialization.StreamingContext context

The destination (System.Runtime.Serialization.StreamingContext) for this serialization.

Explicit Interface Implementations

| Improve this Doc View Source

IJsonSerialize.GetObjectData(IJsonWriteData)

Declaration
void IJsonSerialize.GetObjectData(IJsonWriteData data)
Parameters
Type Name Description
IJsonWriteData data
| Improve this Doc View Source

IJsonSerialize.SetObjectData(IJsonReadData)

Declaration
void IJsonSerialize.SetObjectData(IJsonReadData data)
Parameters
Type Name Description
IJsonReadData data

Implements

System.Runtime.Serialization.ISerializable
IJsonSerialize
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX